5 comments

[ 4.7 ms ] story [ 25.1 ms ] thread
Which JS version?

I tried 2**3 and it says: UnexpectedValue…

The author here.

It's roughly ES5, with many parts and standard methods still missing.

It's a small toy implementation of a JS runtime in Rust from scratch, not ready for any practical use.

alert('hello')

const alert = this.alert;

Nothing seems to work :(

It's not a browser JavaScript runtime. It's an isolated WASM sandbox without any other interface than the provided REPL.
Because shipping tons of frameworks has become boring, now the cool thing to do is to build JS runtimes.