@@ -29,13 +29,11 @@ export function convert(text: string, commentMap: Record<string, string>) {
29
29
} else if ( rootType . type === "namespace" ) {
30
30
browser . namespaces ! . push ( convertNamespace ( rootType , commentMap ) ) ;
31
31
} else if ( rootType . type === "callback interface" ) {
32
- browser [ "callback-interfaces" ] ! . interface [
33
- rootType . name
34
- ] = convertInterfaceCommon ( rootType , commentMap ) ;
32
+ browser [ "callback-interfaces" ] ! . interface [ rootType . name ] =
33
+ convertInterfaceCommon ( rootType , commentMap ) ;
35
34
} else if ( rootType . type === "callback" ) {
36
- browser [ "callback-functions" ] ! [ "callback-function" ] [
37
- rootType . name
38
- ] = convertCallbackFunctions ( rootType ) ;
35
+ browser [ "callback-functions" ] ! [ "callback-function" ] [ rootType . name ] =
36
+ convertCallbackFunctions ( rootType ) ;
39
37
addComments (
40
38
browser [ "callback-functions" ] ! [ "callback-function" ] [ rootType . name ] ,
41
39
commentMap ,
@@ -79,10 +77,9 @@ function getExtAttr(extAttrs: webidl2.ExtendedAttribute[], name: string) {
79
77
attr . rhs . type === "string-list" ||
80
78
attr . rhs . type === "decimal-list" ||
81
79
attr . rhs . type === "integer-list"
82
- ? ( attr . rhs
83
- . value as webidl2 . ExtendedAttributeRightHandSideIdentifier [ ] ) . map (
84
- ( item ) => item . value
85
- )
80
+ ? (
81
+ attr . rhs . value as webidl2 . ExtendedAttributeRightHandSideIdentifier [ ]
82
+ ) . map ( ( item ) => item . value )
86
83
: [ attr . rhs . value ] ;
87
84
}
88
85
@@ -357,6 +354,7 @@ function convertAttribute(
357
354
exposed :
358
355
getExtAttrConcatenated ( attribute . extAttrs , "Exposed" ) ||
359
356
inheritedExposure ,
357
+ "put-forwards" : getExtAttr ( attribute . extAttrs , "PutForwards" ) [ 0 ] ,
360
358
} ;
361
359
}
362
360
0 commit comments