NerdLang / nerd

🔱 Javascript's God Mode. No VM. No Bytecode. No GC. Just native binaries.
https://nectarjs.com
MIT License
3.58k stars 126 forks source link

Currently missing BitInt Literal support #102

Closed JakeChampion closed 2 weeks ago

JakeChampion commented 4 years ago

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
adrien-thierry commented 4 years ago

Hi @JakeChampion , thank you

JakeChampion commented 4 years ago

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 👍

adrien-thierry commented 4 years ago

Yes thx my bad, i was too fast