aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/testbindingiterable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/testbindingiterable.rs')
-rw-r--r--components/script/dom/testbindingiterable.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/testbindingiterable.rs b/components/script/dom/testbindingiterable.rs
index 0dd37f9950c..bfbc4478cc2 100644
--- a/components/script/dom/testbindingiterable.rs
+++ b/components/script/dom/testbindingiterable.rs
@@ -7,7 +7,7 @@
use crate::dom::bindings::cell::DomRefCell;
use crate::dom::bindings::codegen::Bindings::TestBindingIterableBinding::TestBindingIterableMethods;
use crate::dom::bindings::error::Fallible;
-use crate::dom::bindings::reflector::{reflect_dom_object2, Reflector};
+use crate::dom::bindings::reflector::{reflect_dom_object_with_proto, Reflector};
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::globalscope::GlobalScope;
@@ -22,7 +22,7 @@ pub struct TestBindingIterable {
impl TestBindingIterable {
fn new(global: &GlobalScope, proto: Option<HandleObject>) -> DomRoot<TestBindingIterable> {
- reflect_dom_object2(
+ reflect_dom_object_with_proto(
Box::new(TestBindingIterable {
reflector: Reflector::new(),
vals: DomRefCell::new(vec![]),