change to Asynchronous type in JS - Which means you should wrap super function with async, and call with “await” keyword - It could require interface change on JS API Handling async/await in C++ side
WebGPU example we can see Adapter and Device are Requested once From browser side with WASM Must ensure this https://webgpufundamentals.org/webgpu/lessons/webgpu-multiple-canvases.html