javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// feature probe for 'super' support (in class methods)
try {
  class A { m() { return 1; } }
  class B extends A { m() { return super.m() + 1; } }
  const b = new B();
  if (b.m() !== 2) throw new Error('super failed');
  console.log('OK');
} catch (e) {
  console.log('NO');
}