javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
try {
  // Test object and array destructuring in binding position
  var { x } = { x: 1 };
  let [ y, ...rest ] = [ 2, 3, 4 ];
  const { a: { b } } = { a: { b: 3 } };
  if (x === 1 && y === 2 && b === 3 && rest.length === 2) {
    console.log('OK');
  } else {
    console.log('NO');
  }
} catch (e) {
  console.log('NO');
}