fix: accommodate to the modern age

This commit is contained in:
yvt 2021-07-10 18:09:05 +09:00
parent 01a7de50ab
commit 28c670d6c3
3 changed files with 15 additions and 6 deletions

View file

@ -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) {