@@ -29,13 +29,11 @@ export function convert(text: string, commentMap: Record<string, string>) {
2929 } else if ( rootType . type === "namespace" ) {
3030 browser . namespaces ! . push ( convertNamespace ( rootType , commentMap ) ) ;
3131 } 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 ) ;
3534 } 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 ) ;
3937 addComments (
4038 browser [ "callback-functions" ] ! [ "callback-function" ] [ rootType . name ] ,
4139 commentMap ,
@@ -79,10 +77,9 @@ function getExtAttr(extAttrs: webidl2.ExtendedAttribute[], name: string) {
7977 attr . rhs . type === "string-list" ||
8078 attr . rhs . type === "decimal-list" ||
8179 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 )
8683 : [ attr . rhs . value ] ;
8784}
8885
@@ -357,6 +354,7 @@ function convertAttribute(
357354 exposed :
358355 getExtAttrConcatenated ( attribute . extAttrs , "Exposed" ) ||
359356 inheritedExposure ,
357+ "put-forwards" : getExtAttr ( attribute . extAttrs , "PutForwards" ) [ 0 ] ,
360358 } ;
361359}
362360
0 commit comments