diff options
Diffstat (limited to 'components/script/dom/bindings/interface.rs')
-rw-r--r-- | components/script/dom/bindings/interface.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bindings/interface.rs b/components/script/dom/bindings/interface.rs index 1986b08b052..ce2f7e275b6 100644 --- a/components/script/dom/bindings/interface.rs +++ b/components/script/dom/bindings/interface.rs @@ -40,8 +40,7 @@ use crate::dom::bindings::conversions::{get_dom_class, DOM_OBJECT_SLOT}; use crate::dom::bindings::guard::Guard; use crate::dom::bindings::principals::ServoJSPrincipals; use crate::dom::bindings::utils::{ - callargs_is_constructing, get_proto_or_iface_array, DOMJSClass, ProtoOrIfaceArray, - DOM_PROTOTYPE_SLOT, JSCLASS_DOM_GLOBAL, + get_proto_or_iface_array, DOMJSClass, ProtoOrIfaceArray, DOM_PROTOTYPE_SLOT, JSCLASS_DOM_GLOBAL, }; use crate::script_runtime::JSContext as SafeJSContext; @@ -611,7 +610,7 @@ pub fn get_desired_proto( // https://heycam.github.io/webidl/#internally-create-a-new-object-implementing-the-interface // step 3. - assert!(callargs_is_constructing(args)); + assert!(args.is_constructing()); // The desired prototype depends on the actual constructor that was invoked, // which is passed to us as the newTarget in the callargs. We want to do |