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

Unsigned shift unsupported #133

Open DirtyHairy opened 3 years ago

DirtyHairy commented 3 years ago
console.log(-1 >>> 1);

NodeJS:

$ node shift_unsigned.js
2147483647

Nectar:

$ nectar --run shift_unsigned.js
[*] Generating source file
[*] Compiling with preset: speed
/Users/pestix/dumpster/nectar/.nectar/my63o/shift_unsigned.cpp:321:21: error: expected expression
console["log"](-1 >>> 1);
                    ^
adrien-thierry commented 3 years ago

Thank you for the bug report !

DirtyHairy commented 3 years ago

Don't mention it 😏