Bug 200745 - [ESNext][BigInt] LegacyOctals should not allow bigint `n` suffix
Summary: [ESNext][BigInt] LegacyOctals should not allow bigint `n` suffix
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 179001
  Show dependency treegraph
 
Reported: 2019-08-14 17:04 PDT by Joseph Pecoraro
Modified: 2019-08-14 21:40 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!