File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
tools/TypeScript-DOM-lib-generator/src Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -320,12 +320,12 @@ async function emitDom() {
320
320
// outputFolder,
321
321
// useIteratorObject,
322
322
// });
323
- emitFlavor ( webidl , new Set ( knownTypes . Worker ) , {
324
- name : "sharedworker" ,
325
- global : [ "SharedWorker" , "Worker" ] ,
326
- outputFolder,
327
- useIteratorObject,
328
- } ) ;
323
+ // emitFlavor(webidl, new Set(knownTypes.Worker), {
324
+ // name: "sharedworker",
325
+ // global: ["SharedWorker", "Worker"],
326
+ // outputFolder,
327
+ // useIteratorObject,
328
+ // });
329
329
// emitFlavor(webidl, new Set(knownTypes.Worker), {
330
330
// name: "serviceworker",
331
331
// global: ["ServiceWorker", "Worker"],
Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
1567
1567
}
1568
1568
printer . endLine ( ) ;
1569
1569
1570
- const windowInterface = allInterfaces . find ( ( i ) => i . name === "WindowOrWorkerGlobalScope " ) ;
1570
+ const windowInterface = allInterfaces . find ( ( i ) => i . name === "Window " ) ;
1571
1571
if ( ! windowInterface ) throw new Error ( "Window interface not found" ) ;
1572
1572
1573
1573
const allProperties : Browser . Property [ ] =
@@ -2823,12 +2823,11 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
2823
2823
interfaceHierarchy = [
2824
2824
{
2825
2825
name : "Temp" ,
2826
- entries : [
2827
- enums ( [ "WorkerType" ] ) ,
2828
- individualInterfaces ( [ "SharedWorker" ] ) ,
2829
- dictionaries ( [ "WorkerOptions" ] )
2826
+ entries : [
2827
+ enums ( [ "WebGLPowerPreference" ] ) ,
2828
+ dictionaries ( [ "ImageBitmapRenderingContextSettings" , "WebGLContextAttributes" ] ) ,
2830
2829
] ,
2831
- opens : [ "EventAPI" , "ChannelMessagingAPI" ] ,
2830
+ opens : [ ] ,
2832
2831
}
2833
2832
]
2834
2833
@@ -2939,10 +2938,5 @@ export async function emitRescriptBindings(webidl: Browser.WebIdl) {
2939
2938
// emitIndividualInterfaces(remainers);
2940
2939
}
2941
2940
2942
- await emit ( ) ;
2943
-
2944
- await fs . writeFile (
2945
- path . join ( outputFolder , "sharedworker.json" ) ,
2946
- JSON . stringify ( webidl , null , 2 ) ,
2947
- ) ;
2941
+ await emit ( ) ;
2948
2942
}
You can’t perform that action at this time.
0 commit comments