Web assembly is very low level. It's not a VM, there are no strings. It's designed to model 'assembly' style instructions.
To do TS on JS you'd have to build a VM on top of WA.
And that would probably be pointless of course.
To do TS on JS you'd have to build a VM on top of WA.
And that would probably be pointless of course.
Yes of course WASM is a VM of some kind, that should be obvious enough i.e. people are not running machine code in WASM.
My response indicated that if you want to run JS on WASM you have to build another VM on top of WASM (which you indicated is already a VM, sure).
To do JS in WASM you'd have to build something like V8 (a VM) on top of WASM.