Anyone tries to call js("debugger;") ran into erro...
# webassembly
t
Anyone tries to call js("debugger;") ran into error
Uncaught (in promise) TypeError: type incompatibility when transforming from/to JS
before? wonder how to solve it
I check in uninstantiated.js
Copy code
...
wasmExports = wasmInstance.exports;
    if (runInitializer) {
j        wasmExports._initialize();
    }

    return { instance: wasmInstance,  exports: wasmExports };
might be strange char j being compiled into here cause the issue?
s
This works for me
Copy code
fun debugger(): Unit = js("{ debugger; }")

fun main() {
    debugger()
}
🙌 1
t
ohh thanks! it works😊