mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Update to SpiderMonkey 66.
This commit is contained in:
parent
d0d3401361
commit
4328713f71
31 changed files with 150 additions and 144 deletions
|
@ -37,7 +37,7 @@ use crossbeam_channel::Receiver;
|
|||
use devtools_traits::{DevtoolScriptControlMsg, WorkerId};
|
||||
use dom_struct::dom_struct;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use js::jsapi::{JSAutoCompartment, JSContext};
|
||||
use js::jsapi::{JSAutoRealm, JSContext};
|
||||
use js::jsval::UndefinedValue;
|
||||
use js::panic::maybe_resume_unwind;
|
||||
use js::rust::{HandleValue, ParentRuntime};
|
||||
|
@ -401,7 +401,7 @@ impl WorkerGlobalScope {
|
|||
// https://github.com/servo/servo/issues/6422
|
||||
println!("evaluate_script failed");
|
||||
unsafe {
|
||||
let _ac = JSAutoCompartment::new(
|
||||
let _ac = JSAutoRealm::new(
|
||||
self.runtime.cx(),
|
||||
self.reflector().get_jsobject().get(),
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue