mirror of
https://github.com/servo/servo.git
synced 2025-08-04 21:20:23 +01:00
refactor(script): auto ref-count ServoJSPrincipals
This commit is contained in:
parent
b77ee8721b
commit
f884506dfb
2 changed files with 86 additions and 12 deletions
|
@ -155,7 +155,7 @@ pub unsafe fn create_global_object(
|
|||
rval.set(JS_NewGlobalObject(
|
||||
*cx,
|
||||
class,
|
||||
principal.0,
|
||||
principal.as_raw(),
|
||||
OnNewGlobalHookOption::DontFireOnNewGlobalHook,
|
||||
&*options,
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue