javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
// feature probe for 'destructuring-assignment'
try {
  eval('var [a, b] = [1, 2]; if (a !== 1 || b !== 2) throw new Error("wrong");');
  eval('var {x, y} = {x: 3, y: 4}; if (x !== 3 || y !== 4) throw new Error("wrong");');
  console.log('OK');
} catch (e) { console.log('NO'); }