javascript 0.3.0

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