diff options
Diffstat (limited to 'components/script/dom/gpuinternalerror.rs')
-rw-r--r-- | components/script/dom/gpuinternalerror.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/components/script/dom/gpuinternalerror.rs b/components/script/dom/gpuinternalerror.rs index 2fe9414e1cb..224319298fb 100644 --- a/components/script/dom/gpuinternalerror.rs +++ b/components/script/dom/gpuinternalerror.rs @@ -6,6 +6,7 @@ use dom_struct::dom_struct; use js::rust::HandleObject; use super::types::GPUError; +use crate::dom::bindings::codegen::Bindings::WebGPUBinding::GPUInternalError_Binding::GPUInternalErrorMethods; use crate::dom::bindings::reflector::reflect_dom_object_with_proto; use crate::dom::bindings::root::DomRoot; use crate::dom::bindings::str::DOMString; @@ -37,10 +38,11 @@ impl GPUInternalError { can_gc, ) } +} +impl GPUInternalErrorMethods for GPUInternalError { /// <https://gpuweb.github.io/gpuweb/#dom-GPUInternalError-GPUInternalError> - #[allow(non_snake_case)] - pub fn Constructor( + fn Constructor( global: &GlobalScope, proto: Option<HandleObject>, can_gc: CanGc, |