Use get_desired_proto in htmlconstructor (#31600)

* Use get_desired_proto in htmlconstructor

* Update expectations
This commit is contained in:
Samson
2024-03-10 15:44:25 +01:00
committed by GitHub
parent f44cefa816
commit 099bb0fa19
6 changed files with 15 additions and 106 deletions

View File

@@ -6160,8 +6160,9 @@ let global = DomRoot::downcast::<dom::types::%s>(global).unwrap();
cx,
&args,
&*global,
GetProtoObject,
)""" % self.descriptor.name)
PrototypeList::ID::%s,
CreateInterfaceObjects,
)""" % (self.descriptor.name, MakeNativeName(self.descriptor.name)))
else:
ctorName = GetConstructorNameForReporting(self.descriptor, self.constructor)
preamble += """