summaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-11-26 23:09:48 +0100
committerGitHub <noreply@github.com>2022-11-26 23:09:48 +0100
commit3a320db27014925bb40f10dd4e706302bc06c1f1 (patch)
tree5b5b8bd9a925960a454b825949c950b09467c7b4 /runtime
parentd8ab492d016f45346002ae0e9bceac7e900b670a (diff)
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.
Diffstat (limited to 'runtime')
-rw-r--r--runtime/worker.rs1
1 files changed, 1 insertions, 0 deletions
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()
});