CanGc fixes in messageport.rs & workerglobalscope.rs (#34003)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-25 19:23:53 +05:30 committed by GitHub
parent 7ad8822d94
commit fd6c100489
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 7 additions and 6 deletions

View file

@ -384,7 +384,7 @@ impl ServiceWorkerGlobalScope {
{
// TODO: use AutoWorkerReset as in dedicated worker?
let _ac = enter_realm(scope);
scope.execute_script(DOMString::from(source));
scope.execute_script(DOMString::from(source), CanGc::note());
}
global.dispatch_activate(CanGc::note());