MV Does MV/MZ's javascript engine support WASM/JS-compiled native code?

I have a dumb question/idea. Is it possible to compile C/C++/etc code to javascript or wasm using emcc and then use it as an RMMV/RMMZ script? If so, how?
What would be the advantage? The syntax is so similar, if you're proficient with C/++ it should be pretty trivial to just write it as JS to begin with.
Yes, it is possible:
It's probably not worth the effort in most cases, though, and you will still need an appropriate interface plugin (JavaScript) to make use of the WASM results in the engine.
What would be the advantage? The syntax is so similar, if you're proficient with C/++ it should be pretty trivial to just write it as JS to begin with.
Supposedly there is a speed advantage, though I've never looked at benchmarks or anything, so I don't know to what extent that is accurate.

The main advantage is that it makes it much easier to port existing C/C++ libraries to JavaScript. One very relevant example is Effekseer--its actually written in C++, and we're able to use it in MZ due to WebAssembly.
Happened to find this via Google. The use case I have would be integrating other projects that are not done in Javascript, whether that be something I did or a project from somebody else (ffmpeg integration is the most common example I can think of).

On that note, can anyone tell me what Javascript engine (V8, Spidermonkey, JavascriptCore, etc) that RPG Maker uses? If it uses anything off the shelf then it's possible that you can already do this.

If there is none, it would be extremely helpful to have; any form of FFI that could make this possible would be nice, honestly.

EDIT: Somehow missed the mod's reply, oops. That is good to hear! But it would still be nice to know what Javascript engine is used, in order to know what feature set I would have to work with and what (if any) bugs I would have to keep in mind.
RPG Maker MV/MZ create HTML games. If deployed for web, they run in whatever browser the player is using, desktop or mobile. If deployed as standalone, they run in a NWJS app, which is based on Chromium (thus V8).

The OP hasn't been around for a couple of months now, so...

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/does-mv-mzs-javascript-engine-support-wasm-js-compiled-native-code.164423/