nerd icon indicating copy to clipboard operation
nerd copied to clipboard

Currently missing BitInt Literal support

Open JakeChampion opened this issue 3 years ago • 3 comments

It looks like NectarJS is currently missing BigInt Literal support.

Steps to reproduce the issue: 1 - Install latest nectarjs 2 - Run these two commands

❯ echo "0n" > big-int.js
❯ nectar big-int.js

3 - Should see this error message from previous command

[*] Generating source file
[error] Parsing error: Identifier directly after number line 1 column 2 in file big-int.js

JakeChampion avatar Sep 26 '20 17:09 JakeChampion

Hi @JakeChampion , thank you

adrien-thierry avatar Sep 28 '20 08:09 adrien-thierry

I see this has been labelled es5. I figure I should mention that BigInt was added in es2020, which is the 11th edition and not in es5.

Not sure if that changes anything but just in case you thought it was an es5 feature 👍

JakeChampion avatar Sep 28 '20 15:09 JakeChampion

Yes thx my bad, i was too fast

adrien-thierry avatar Sep 28 '20 15:09 adrien-thierry