-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LiteralPropertyName should allow BigIntLiteral #10955
LiteralPropertyName should allow BigIntLiteral #10955
Conversation
You can run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FWIW, I don't like this 🙃
Yeah we can always revert the whitelist when TypeScript fixed this issue. |
Oh, I meant the fact that JS allows bigints as property names 😂 |
@nicolo-ribaudo Well it has been staged 4, so 🤷♂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh, yeah, curious what the reasoning behind allowing this is. I guess since BigInt
s can already be values, it's not really making it harder to serialize objects.
Tracing through the spec:
Related:
tc39/test262#2457
https://bugs.chromium.org/p/v8/issues/detail?id=10083
CI is red due to