javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// Probe for Reflect.construct support
try {
  if (typeof Reflect === 'object' && Reflect && typeof Reflect.construct === 'function') {
    console.log('OK');
  } else {
    console.log('NO');
  }
} catch (e) {
  console.log('NO');
}