Using JS in Mozilla code

JS language features that are implemented in the Mozilla JS engine are ordinarily safe to use in Mozilla code.

However, there are a few exceptions, listed here.

JS Language features

Proper tail calls are not implemented.

JS standard library features

Feature Standard Can be used in code
new Proxy(target, handler) ES6 (2015) Yes, but getPrototypeOf and setPrototypeOf handlers are not yet implemented.
ArrayBuffer.transfer() proposed for ES7 (2016) No, Nightly-only for now
SharedArrayBuffer, SharedInt8Array..., Atomics proposed for ES7 (2016) No, Nightly-only for now
TypedObject proposed for ES7 (2016) No, Nightly-only for now
SIMD proposed for ES7 (2016) No, Nightly-only for now

Document Tags and Contributors

 Contributors to this page: jorendorff-moz
 Last updated by: jorendorff-moz,