SLJS: A true JavaScript runtime written in rust that compiles to WASM (dmytrish.net) 5 points by todsacerdoti 4y ago ↗ HN
[–] efortis 4y ago ↗ Which JS version?I tried 2**3 and it says: UnexpectedValue… [–] dmytrish 4y ago ↗ 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.
[–] dmytrish 4y ago ↗ 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.
[–] NaughtyShiba 4y ago ↗ alert('hello')const alert = this.alert;Nothing seems to work :( [–] dmytrish 4y ago ↗ It's not a browser JavaScript runtime. It's an isolated WASM sandbox without any other interface than the provided REPL.
[–] dmytrish 4y ago ↗ It's not a browser JavaScript runtime. It's an isolated WASM sandbox without any other interface than the provided REPL.
[–] mr90210 4y ago ↗ Because shipping tons of frameworks has become boring, now the cool thing to do is to build JS runtimes.
5 comments
[ 4.7 ms ] story [ 25.1 ms ] threadI tried 2**3 and it says: UnexpectedValue…
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.
const alert = this.alert;
Nothing seems to work :(