SpiderMonkey 1.7.0 — WebAssembly playground
A 2006-era JavaScript engine, compiled to wasm and running in your browser.
Source here.
// Try me. Output goes to the box below via print(). Object.prototype.__defineSetter__("x", function (v) { print("setter called with", v); }); var obj = { x: 42 };
Run ▶
JavaScript 1.7 syntax (
-v 170
)
Enable "JavaScript 1.7 syntax" to use yield/let/destructuring/comprehensions.