Run wasm built with wasm-pack with pythonmonkey

I have been trying to run wasm code built with wasm-pack with pythonmonkey, a Mozilla SpiderMonkey JavaScript engine embedded into the Python Runtime. Consider a lib.rs as follow: 1 use wasm_bindgen :: prelude :: * ; 2 3 #[wasm_bindgen] 4 pub fn add ( a : i32 , b : i32 ) -> i32 { 5 return a + b ; 6 } With wasm-pack , we can build the src code to wasm 1 wasm-pack build --target nodejs…