mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
chore(deps): update mozjs
- 798c5b6: Bring `RustJSPrincipals` back
This commit is contained in:
parent
fd177a9199
commit
40fbe6b722
4 changed files with 30 additions and 12 deletions
|
@ -61,7 +61,7 @@ use js::jsapi::{
|
|||
JSJitCompilerOption, JS_SetOffthreadIonCompilationEnabled, JS_SetParallelParsingEnabled,
|
||||
};
|
||||
use js::jsapi::{JSObject, PromiseRejectionHandlingState, SetPreserveWrapperCallbacks};
|
||||
use js::jsapi::{JSSecurityCallbacks, JS_SetSecurityCallbacks};
|
||||
use js::jsapi::{JSSecurityCallbacks, JS_InitDestroyPrincipalsCallback, JS_SetSecurityCallbacks};
|
||||
use js::jsapi::{SetJobQueue, SetProcessBuildIdOp, SetPromiseRejectionTrackerCallback};
|
||||
use js::jsval::UndefinedValue;
|
||||
use js::panic::wrap_panic;
|
||||
|
@ -475,6 +475,8 @@ unsafe fn new_rt_and_cx_with_parent(
|
|||
|
||||
JS_SetSecurityCallbacks(cx, &SECURITY_CALLBACKS);
|
||||
|
||||
JS_InitDestroyPrincipalsCallback(cx, Some(utils::destroy_servo_jsprincipal));
|
||||
|
||||
// Needed for debug assertions about whether GC is running.
|
||||
if cfg!(debug_assertions) {
|
||||
JS_SetGCCallback(cx, Some(debug_gc_callback), ptr::null_mut());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue