@@ -118,7 +118,7 @@ function convertInterfaceCommon(i: webidl2.InterfaceType | webidl2.InterfaceMixi
118
118
"anonymous-methods" : { method : [ ] } ,
119
119
properties : { property : { } , namesakes : { } } ,
120
120
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 ) ,
122
122
exposed : getExtAttrConcatenated ( i . extAttrs , "Exposed" ) ,
123
123
global : getExtAttrConcatenated ( i . extAttrs , "Global" ) ,
124
124
"no-interface-object" : hasExtAttr ( i . extAttrs , "NoInterfaceObject" ) ? 1 : undefined ,
@@ -210,9 +210,9 @@ function getOldStyleConstructor(extAttrs: webidl2.ExtendedAttribute[], parent: s
210
210
}
211
211
}
212
212
213
- function getNamedConstructor ( extAttrs : webidl2 . ExtendedAttribute [ ] , parent : string ) : Browser . NamedConstructor | undefined {
213
+ function getLegacyFactoryFunction ( extAttrs : webidl2 . ExtendedAttribute [ ] , parent : string ) : Browser . NamedConstructor | undefined {
214
214
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" ) {
216
216
return {
217
217
name : extAttr . rhs . value ,
218
218
signature : [ {
0 commit comments