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 Expressions table does allow arbitrary values to be inlined "without inlining" in some contexts. I think that's a bad idea. This wording seems to suggest that the following things are allowed:
Urgh. Can we please do ToNumber on the interpolation value in the context of DecimalDigits, and throw a TypeError if it yields NaN?
So that the only allowed patterns are basically
Should RegExp.makex{3,${ Infinity }}`` produce /x{3,}/?
Sure, seems reasonable. That's what the Quantifier evaluates back to anyway…
What about RegExp.makea{${ [1,2] }}``?
No, that's not a number (and can't be coerced to one, like ["1"] could :-/). I don't see a reason to accept arrays. What if they're empty? What if they're longer than 2? If you are (ab)using arrrays as tuples and know that it has two elements, then it's not much harder to write
The Expressions table does allow arbitrary values to be inlined "without inlining" in some contexts. I think that's a bad idea. This wording seems to suggest that the following things are allowed:
Urgh. Can we please do
ToNumber
on the interpolation value in the context ofDecimalDigits
, and throw aTypeError
if it yieldsNaN
?So that the only allowed patterns are basically
where each of those variables has to be a number (or at least numeric).
The text was updated successfully, but these errors were encountered: