From 3a320db27014925bb40f10dd4e706302bc06c1f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 26 Nov 2022 23:09:48 +0100 Subject: fix(inspector): send "isDefault" in aux data (#16836) With trial and error I found that most debuggers expect "isDefault" to be sent in "auxData" field of "executionContextCreated" notification. This stems from the fact that Node.js sends this data and eg. VSCode requires it to close connection to the debugger when the program finishes execution. --- runtime/worker.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'runtime') diff --git a/runtime/worker.rs b/runtime/worker.rs index 0c439c703..967d53ea8 100644 --- a/runtime/worker.rs +++ b/runtime/worker.rs @@ -240,6 +240,7 @@ impl MainWorker { compiled_wasm_module_store: options.compiled_wasm_module_store.clone(), extensions, inspector: options.maybe_inspector_server.is_some(), + is_main: true, ..Default::default() }); -- cgit v1.2.3