Wasm may be web related, but it's just a reasonably mature technology with a developing ecosystem [1].
You can implement Wasm without anything web related. You can even implement ECMAScript without implementing anything web related (like the document model).
You can implement Wasm without anything web related. You can even implement ECMAScript without implementing anything web related (like the document model).
[1]: https://v8.dev/blog/wasm-decompile