refactor(script): auto ref-count ServoJSPrincipals

This commit is contained in:
yvt 2021-07-13 23:08:23 +09:00
parent b77ee8721b
commit f884506dfb
2 changed files with 86 additions and 12 deletions

View file

@ -155,7 +155,7 @@ pub unsafe fn create_global_object(
rval.set(JS_NewGlobalObject(
*cx,
class,
principal.0,
principal.as_raw(),
OnNewGlobalHookOption::DontFireOnNewGlobalHook,
&*options,
));