17:37
<sideshowbarker>
what do we call the object that results from parsing a script?
17:37
<sideshowbarker>
parsing an HTML document produces a DOM tree, parsing a CSS stylesheet produces a CSSOM structure
17:39
<bradleymeck>
sideshowbarker: "Parse Node"
17:40
<sideshowbarker>
OK — thanks
17:40
<bradleymeck>
though there is a wrapper for Script/Module : https://tc39.es/ecma262/#sec-script-records
17:40
sideshowbarker
looks
17:41
<bradleymeck>
the records are just some info attached to the parse results
19:02
<rkirsling>
is there anything currently in JS that will cause all of the digits of a base-10 integer > 10^21 to be printed?
(I don't care what the digits are, just that we don't get scientific notation)
19:03
<rkirsling>
Temporal is assuming this ability but...
19:10
<ptomato>
rkirsling: yes, BigInt(1e300).toString()
19:18
<rkirsling>
hmm but that won't work with a number value
19:19
<rkirsling>
I mean specifically: for the value 999999999999999999999, I get some string of nothing but digits
19:21
<ptomato>
well, 999999999999999999999 > Number.MAX_SAFE_INTEGER
19:21
<ptomato>
so BigInt(999999999999999999999).toString() === '1000000000000000000000', but you did say that you didn't care what the digits are 😅
19:28
<rkirsling>
yeah I mean P1+e21Y is not a valid duration string so we have to print something
19:29
<rkirsling>
these unbounded values are a huge pain
19:31
<ptomato>
there's some discussion on that: https://github.com/tc39/proposal-temporal/issues/24#issuecomment-589980538
19:31
<rkirsling>
ahh I see, the polyfill does do what you said: https://github.com/tc39/proposal-temporal/blob/main/polyfill/lib/ecmascript.mjs#L1881-L1884