Bug 200745
Summary: | [ESNext][BigInt] LegacyOctals should not allow bigint `n` suffix | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | joepeck, ross.kirsling, ticaiolima, ysuzuki |
Priority: | P2 | ||
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Bug Depends on: | |||
Bug Blocks: | 179001 |
Joseph Pecoraro
LegacyOctals should not allow bigint `n` suffix
>>> 0008n
=> Should SyntaxError
>>> 0o008n
=> Should SyntaxError
>>> 0001n
=> Should SyntaxError
>>> 0o0001n
=> Should work
Currently they all produce numbers in JavaScriptCore.
test262:
test/language/literals/bigint/non-octal-like-invalid-0008n.js
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ross Kirsling
I'm confused; this is working to spec as of r247845 -- do you have an old build lingering around?
Joseph Pecoraro
(In reply to Ross Kirsling from comment #1)
> I'm confused; this is working to spec as of r247845 -- do you have an old
> build lingering around?
Yes! I was running an out of date version. Closing, thanks!