@@ -150,7 +150,7 @@ async function emitDom() {
150
150
target . comment = descObject . __comment ;
151
151
}
152
152
}
153
- idl = merge ( idl , descriptions ) ;
153
+ idl = merge ( idl , descriptions , { optional : true } ) ;
154
154
155
155
return idl ;
156
156
}
@@ -179,7 +179,7 @@ async function emitDom() {
179
179
} ;
180
180
181
181
for ( const w of widlStandardTypes ) {
182
- webidl = merge ( webidl , w . browser , true ) ;
182
+ webidl = merge ( webidl , w . browser , { shallow : true } ) ;
183
183
}
184
184
for ( const w of widlStandardTypes ) {
185
185
for ( const partial of w . partialInterfaces ) {
@@ -189,32 +189,32 @@ async function emitDom() {
189
189
webidl . mixins ! . mixin [ partial . name ] ;
190
190
if ( base ) {
191
191
if ( base . exposed ) resolveExposure ( partial , base . exposed ) ;
192
- merge ( base . constants , partial . constants , true ) ;
193
- merge ( base . methods , partial . methods , true ) ;
194
- merge ( base . properties , partial . properties , true ) ;
192
+ merge ( base . constants , partial . constants , { shallow : true } ) ;
193
+ merge ( base . methods , partial . methods , { shallow : true } ) ;
194
+ merge ( base . properties , partial . properties , { shallow : true } ) ;
195
195
}
196
196
}
197
197
for ( const partial of w . partialMixins ) {
198
198
const base = webidl . mixins ! . mixin [ partial . name ] ;
199
199
if ( base ) {
200
200
if ( base . exposed ) resolveExposure ( partial , base . exposed ) ;
201
- merge ( base . constants , partial . constants , true ) ;
202
- merge ( base . methods , partial . methods , true ) ;
203
- merge ( base . properties , partial . properties , true ) ;
201
+ merge ( base . constants , partial . constants , { shallow : true } ) ;
202
+ merge ( base . methods , partial . methods , { shallow : true } ) ;
203
+ merge ( base . properties , partial . properties , { shallow : true } ) ;
204
204
}
205
205
}
206
206
for ( const partial of w . partialDictionaries ) {
207
207
const base = webidl . dictionaries ! . dictionary [ partial . name ] ;
208
208
if ( base ) {
209
- merge ( base . members , partial . members , true ) ;
209
+ merge ( base . members , partial . members , { shallow : true } ) ;
210
210
}
211
211
}
212
212
for ( const partial of w . partialNamespaces ) {
213
213
const base = webidl . namespaces ?. find ( ( n ) => n . name === partial . name ) ;
214
214
if ( base ) {
215
215
if ( base . exposed ) resolveExposure ( partial , base . exposed ) ;
216
- merge ( base . methods , partial . methods , true ) ;
217
- merge ( base . properties , partial . properties , true ) ;
216
+ merge ( base . methods , partial . methods , { shallow : true } ) ;
217
+ merge ( base . properties , partial . properties , { shallow : true } ) ;
218
218
}
219
219
}
220
220
for ( const include of w . includes ) {
0 commit comments