diff options
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r-- | components/script/script_runtime.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/script_runtime.rs b/components/script/script_runtime.rs index 9c61c2fe062..151db669405 100644 --- a/components/script/script_runtime.rs +++ b/components/script/script_runtime.rs @@ -473,7 +473,7 @@ unsafe fn new_rt_and_cx_with_parent( JS_AddExtraGCRootsTracer(cx, Some(trace_rust_roots), ptr::null_mut()); - JS_SetSecurityCallbacks(runtime.rt(), &SECURITY_CALLBACKS); + JS_SetSecurityCallbacks(cx, &SECURITY_CALLBACKS); // Needed for debug assertions about whether GC is running. if cfg!(debug_assertions) { |