javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// feature probe for 'numeric-separator-literal'
try {
  var n = eval("1_000 + 0b1_0 + 0o1_0 + 0xF_F");
  var bi = eval("1_0n + 0b1_0n + 0o1_0n + 0xFn");
  if (n === (1000 + 2 + 8 + 255) && bi === 35n) {
    console.log("OK");
  }
} catch (e) {
  // unsupported
}