javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// Probe for Symbol.asyncIterator support
try {
  if (typeof Symbol === 'function' && typeof Symbol.asyncIterator === 'symbol') {
    console.log('OK');
  } else {
    throw new Error('Symbol.asyncIterator not supported');
  }
} catch (e) {
  console.log('NO, reason: ' + e.message);
}