javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
// feature probe for 'Atomics.waitAsync'
try {
  if (typeof Atomics !== 'object') throw new Error('Atomics missing');
  if (typeof Atomics.waitAsync !== 'function') throw new Error('Atomics.waitAsync missing');
  console.log('OK');
} catch (e) {
  console.log('NO');
}