mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
fix: accommodate to the modern age
This commit is contained in:
parent
01a7de50ab
commit
28c670d6c3
3 changed files with 15 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue