aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpuuncapturederrorevent.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/gpuuncapturederrorevent.rs')
-rw-r--r--components/script/dom/gpuuncapturederrorevent.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/gpuuncapturederrorevent.rs b/components/script/dom/gpuuncapturederrorevent.rs
index bdf62162dfe..e5c590fdd68 100644
--- a/components/script/dom/gpuuncapturederrorevent.rs
+++ b/components/script/dom/gpuuncapturederrorevent.rs
@@ -7,7 +7,7 @@ use crate::dom::bindings::codegen::Bindings::GPUUncapturedErrorEventBinding::{
GPUUncapturedErrorEventInit, GPUUncapturedErrorEventMethods,
};
use crate::dom::bindings::codegen::Bindings::GPUValidationErrorBinding::GPUError;
-use crate::dom::bindings::reflector::reflect_dom_object2;
+use crate::dom::bindings::reflector::reflect_dom_object_with_proto;
use crate::dom::bindings::root::DomRoot;
use crate::dom::bindings::str::DOMString;
use crate::dom::event::Event;
@@ -45,7 +45,7 @@ impl GPUUncapturedErrorEvent {
type_: DOMString,
init: &GPUUncapturedErrorEventInit,
) -> DomRoot<Self> {
- let ev = reflect_dom_object2(
+ let ev = reflect_dom_object_with_proto(
Box::new(GPUUncapturedErrorEvent::new_inherited(init)),
global,
proto,