You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem: while I was aiming to address 08.1_1 or 08e1_0 as a Legacy NonOctal containing exponential / fractional parts where numeric separators are "allowed", I'm not sure how we would forbid these productions to allow numeric separators.
My question: should we pursue a change in the specs to forbid Numeric Separators in exponential or fractional parts of Legacy NonOctal literals. It sounds like a change would require expanding Annex B to change DecimalLiteral or create a static error for productions of DecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt and DecimalIntegerLiteral ExponentPart_opt if a numeric separator is present.
The change would also require change the current implementation of JSC, SpiderMonkey, and V8, as they allow the separators in these parts.
At the TC39 Meeting in July 2020 we reached a conclusion this belongs to a broader matter whether NonOctals should have fractional or exponential parts disallowed.
The committee agreed to not disallow numeric separators in the fractional or exponential parts of NonOctals at this point.
I'd love to tackle this as a follow up to the Numeric Separators proposal scheduled for Stage 4 in July 2020.
I've been working on tc39/proposal-numeric-separator#49 and while trying to fetch the matching grammar for Legacy NonOctal literals.
The problem: while I was aiming to address
08.1_1
or08e1_0
as a Legacy NonOctal containing exponential / fractional parts where numeric separators are "allowed", I'm not sure how we would forbid these productions to allow numeric separators.My question: should we pursue a change in the specs to forbid Numeric Separators in exponential or fractional parts of Legacy NonOctal literals. It sounds like a change would require expanding Annex B to change
DecimalLiteral
or create a static error for productions ofDecimalIntegerLiteral . DecimalDigits_opt ExponentPart_opt
andDecimalIntegerLiteral ExponentPart_opt
if a numeric separator is present.The change would also require change the current implementation of JSC, SpiderMonkey, and V8, as they allow the separators in these parts.
Related Grammar (w/ Numeric Separators)
Examples (all in non-strict mode):
ExponentialPart:
The text was updated successfully, but these errors were encountered: