Bug 200745

Summary: [ESNext][BigInt] LegacyOctals should not allow bigint `n` suffix
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: JavaScriptCoreAssignee: 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    

Description Joseph Pecoraro 2019-08-14 17:04:00 PDT
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
Comment 1 Ross Kirsling 2019-08-14 17:37:04 PDT
I'm confused; this is working to spec as of r247845 -- do you have an old build lingering around?
Comment 2 Joseph Pecoraro 2019-08-14 21:40:27 PDT
(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!