aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_runtime.rs
diff options
context:
space:
mode:
authoryvt <i@yvt.jp>2021-07-10 18:09:05 +0900
committeryvt <i@yvt.jp>2021-07-10 18:18:33 +0900
commit28c670d6c3bfa084fc99f913f3f1caa87e6d7dbd (patch)
tree6e18c3c43cdcd703022c7015bab13a66066357e1 /components/script/script_runtime.rs
parent01a7de50ab1843d85295f9dccad7f4c099e7208c (diff)
downloadservo-28c670d6c3bfa084fc99f913f3f1caa87e6d7dbd.tar.gz
servo-28c670d6c3bfa084fc99f913f3f1caa87e6d7dbd.zip
fix: accommodate to the modern age
Diffstat (limited to 'components/script/script_runtime.rs')
-rw-r--r--components/script/script_runtime.rs2
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) {