aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuvalidationerror.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpuvalidationerror.rs')
-rw-r--r--components/script/dom/gpuvalidationerror.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpuvalidationerror.rs b/components/script/dom/gpuvalidationerror.rs
index 40c75c31ec6..412b30f5862 100644
--- a/components/script/dom/gpuvalidationerror.rs
+++ b/components/script/dom/gpuvalidationerror.rs
@@ -3,7 +3,7 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::dom::bindings::codegen::Bindings::GPUValidationErrorBinding::GPUValidationErrorMethods;
-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;
@@ -33,7 +33,7 @@ impl GPUValidationError {
proto: Option<HandleObject>,
message: DOMString,
) -> DomRoot<Self> {
- reflect_dom_object2(
+ reflect_dom_object_with_proto(
Box::new(GPUValidationError::new_inherited(message)),
global,
proto,