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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 += """