javascript 0.3.0

A JavaScript engine implementation in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
// feature probe for 'immutable-arraybuffer'
try {
  var ab = new ArrayBuffer(4);
  var iab = ab.transferToImmutable();
  if (iab.immutable !== true) throw new Error('immutable not true');
  if (ab.detached !== true) throw new Error('original not detached');
  console.log('OK');
} catch (_) {
  console.log('NO');
}