javascript 0.3.0

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