aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/htmlconstructor.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-05-06 11:38:34 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-05-10 22:43:43 -0400
commit4328713f71d5bc389ecd47e78bfe9b8087b8c104 (patch)
treea61f5fe1150d1e5ff333e3b5af3f1cc1a7911101 /components/script/dom/bindings/htmlconstructor.rs
parentd0d3401361cd44de3b8bf133d44c9338dfefdbef (diff)
downloadservo-4328713f71d5bc389ecd47e78bfe9b8087b8c104.tar.gz
servo-4328713f71d5bc389ecd47e78bfe9b8087b8c104.zip
Update to SpiderMonkey 66.
Diffstat (limited to 'components/script/dom/bindings/htmlconstructor.rs')
-rw-r--r--components/script/dom/bindings/htmlconstructor.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/bindings/htmlconstructor.rs b/components/script/dom/bindings/htmlconstructor.rs
index a13b6fa9ecb..08323e1e8cd 100644
--- a/components/script/dom/bindings/htmlconstructor.rs
+++ b/components/script/dom/bindings/htmlconstructor.rs
@@ -81,7 +81,7 @@ use html5ever::interface::QualName;
use html5ever::LocalName;
use js::glue::UnwrapObject;
use js::jsapi::{CallArgs, CurrentGlobalOrNull};
-use js::jsapi::{JSAutoCompartment, JSContext, JSObject};
+use js::jsapi::{JSAutoRealm, JSContext, JSObject};
use js::rust::HandleObject;
use js::rust::MutableHandleObject;
use std::ptr;
@@ -115,7 +115,7 @@ where
}
{
- let _ac = JSAutoCompartment::new(window.get_cx(), callee.get());
+ let _ac = JSAutoRealm::new(window.get_cx(), callee.get());
rooted!(in(window.get_cx()) let mut constructor = ptr::null_mut::<JSObject>());
rooted!(in(window.get_cx()) let global_object = CurrentGlobalOrNull(window.get_cx()));