3 ms·
If you're going to precompile your JS, why would you want to emit this bytecode instead of just going to WASM?
by eridius 7y ago
If you're going to precompile your JS, why would you want to emit this bytecode instead of just going to WASM?
- pier25 7y agoBecause wasm still doesn't support many features that JS does. For example accessing the DOM.
- firethief 7y agoBytecode is a broad category. The design of a bytecode suitable for interpreting JS has little in common with a bytecode for AOT compilation of static languages without tracing GC, other than that they're both made of bytes.