properly shutdown dedicated workers when the owning scope shuts-down

This commit is contained in:
Gregory Terzian 2020-05-29 18:12:02 +08:00
parent 5174739244
commit 6f34b52e39
3 changed files with 13 additions and 3 deletions

View file

@ -460,6 +460,7 @@ impl DedicatedWorkerGlobalScope {
parent_sender,
CommonScriptMsg::CollectReports,
);
scope.clear_js_runtime();
})
.expect("Thread spawning failed")
}