@@ -118,7 +118,7 @@ function convertInterfaceCommon(i: webidl2.InterfaceType | webidl2.InterfaceMixi
118118 "anonymous-methods" : { method : [ ] } ,
119119 properties : { property : { } , namesakes : { } } ,
120120 constructor : getConstructor ( i . members , i . name ) || getOldStyleConstructor ( i . extAttrs , i . name ) ,
121- "named-constructor" : getNamedConstructor ( i . extAttrs , i . name ) ,
121+ "named-constructor" : getLegacyFactoryFunction ( i . extAttrs , i . name ) ,
122122 exposed : getExtAttrConcatenated ( i . extAttrs , "Exposed" ) ,
123123 global : getExtAttrConcatenated ( i . extAttrs , "Global" ) ,
124124 "no-interface-object" : hasExtAttr ( i . extAttrs , "NoInterfaceObject" ) ? 1 : undefined ,
@@ -210,9 +210,9 @@ function getOldStyleConstructor(extAttrs: webidl2.ExtendedAttribute[], parent: s
210210 }
211211}
212212
213- function getNamedConstructor ( extAttrs : webidl2 . ExtendedAttribute [ ] , parent : string ) : Browser . NamedConstructor | undefined {
213+ function getLegacyFactoryFunction ( extAttrs : webidl2 . ExtendedAttribute [ ] , parent : string ) : Browser . NamedConstructor | undefined {
214214 for ( const extAttr of extAttrs ) {
215- if ( extAttr . name === "NamedConstructor " && extAttr . rhs && typeof extAttr . rhs . value === "string" ) {
215+ if ( extAttr . name === "LegacyFactoryFunction " && extAttr . rhs && typeof extAttr . rhs . value === "string" ) {
216216 return {
217217 name : extAttr . rhs . value ,
218218 signature : [ {
0 commit comments