aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/htmlconstructor.rs
diff options
context:
space:
mode:
authorSamson <16504129+sagudev@users.noreply.github.com>2023-09-11 10:23:05 +0200
committerGitHub <noreply@github.com>2023-09-11 08:23:05 +0000
commit59d134133fb5474f510dd289c212ad0e78564642 (patch)
tree65443ed51e6c0ba2e14f8fde7403ae1c521e33bd /components/script/dom/bindings/htmlconstructor.rs
parent9b1247b20f2de6bbba39efff49eabc63e865ce2e (diff)
downloadservo-59d134133fb5474f510dd289c212ad0e78564642.tar.gz
servo-59d134133fb5474f510dd289c212ad0e78564642.zip
Use MozTools 4 and update mozjs (#30326)
* Update mozjs * moztools4 in bootstrap * no autoconf * tidy * switch to servo-build-deps * update mozjs for real * glue mozjs * fmt * move to servo/mozjs
Diffstat (limited to 'components/script/dom/bindings/htmlconstructor.rs')
-rw-r--r--components/script/dom/bindings/htmlconstructor.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/bindings/htmlconstructor.rs b/components/script/dom/bindings/htmlconstructor.rs
index 9a2c037de46..5eb79e28e1b 100644
--- a/components/script/dom/bindings/htmlconstructor.rs
+++ b/components/script/dom/bindings/htmlconstructor.rs
@@ -113,7 +113,7 @@ unsafe fn html_constructor(
// The new_target might be a cross-compartment wrapper. Get the underlying object
// so we can do the spec's object-identity checks.
- rooted!(in(*cx) let new_target_unwrapped = UnwrapObjectDynamic(call_args.new_target().to_object(), *cx, 1));
+ rooted!(in(*cx) let new_target_unwrapped = UnwrapObjectDynamic(call_args.new_target().to_object(), *cx, true));
if new_target_unwrapped.is_null() {
throw_dom_exception(cx, global, Error::Type("new.target is null".to_owned()));
return Err(());