javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
// Probe: Proxy
// Run as a normal script; if Proxy support exists print OK
try {
  const p = new Proxy({}, {});
  // Basic behaviour check
  if (typeof p === 'object') console.log('OK');
  else throw new Error('unexpected proxy type');
} catch (e) {
  // ensure non-OK exit
  throw e;
}