Skip to content

Commit

Permalink
Remove non-exists web worker globals
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 20, 2024
1 parent 4ce91c7 commit 44a2cf7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
7 changes: 0 additions & 7 deletions data/worker.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export default {
AbortController: false,
AbortSignal: false,
addEventListener: false,
applicationCache: false,
atob: false,
AudioData: false,
AudioDecoder: false,
Expand Down Expand Up @@ -149,14 +148,10 @@ export default {
Notification: false,
OffscreenCanvas: false,
OffscreenCanvasRenderingContext2D: false,
onclose: true,
onconnect: true,
onerror: true,
onlanguagechange: true,
onmessage: true,
onmessageerror: true,
onoffline: true,
ononline: true,
onrejectionhandled: true,
onunhandledrejection: true,
origin: false,
Expand All @@ -166,12 +161,10 @@ export default {
PerformanceEntry: false,
PerformanceMark: false,
PerformanceMeasure: false,
PerformanceNavigation: false,
PerformanceObserver: false,
PerformanceObserverEntryList: false,
PerformanceResourceTiming: false,
PerformanceServerTiming: false,
PerformanceTiming: false,
PeriodicSyncManager: false,
Permissions: false,
PermissionStatus: false,
Expand Down
7 changes: 0 additions & 7 deletions globals.json
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,6 @@
"AbortController": false,
"AbortSignal": false,
"addEventListener": false,
"applicationCache": false,
"atob": false,
"AudioData": false,
"AudioDecoder": false,
Expand Down Expand Up @@ -1606,14 +1605,10 @@
"Notification": false,
"OffscreenCanvas": false,
"OffscreenCanvasRenderingContext2D": false,
"onclose": true,
"onconnect": true,
"onerror": true,
"onlanguagechange": true,
"onmessage": true,
"onmessageerror": true,
"onoffline": true,
"ononline": true,
"onrejectionhandled": true,
"onunhandledrejection": true,
"origin": false,
Expand All @@ -1623,12 +1618,10 @@
"PerformanceEntry": false,
"PerformanceMark": false,
"PerformanceMeasure": false,
"PerformanceNavigation": false,
"PerformanceObserver": false,
"PerformanceObserverEntryList": false,
"PerformanceResourceTiming": false,
"PerformanceServerTiming": false,
"PerformanceTiming": false,
"PeriodicSyncManager": false,
"Permissions": false,
"PermissionStatus": false,
Expand Down
12 changes: 1 addition & 11 deletions scripts/get-browser-globals.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,7 @@ async function getWebWorkerGlobals() {
const properties = await runInWebWorker(getGlobalThisProperties);

return createGlobals(
[
...properties,
// Existing data, need confirm
'applicationCache',
'onclose',
'onconnect',
'onoffline',
'ononline',
'PerformanceNavigation',
'PerformanceTiming',
],
properties,
{
shouldExclude: name => name.startsWith('__'),
isWritable: name => name.startsWith('on'),
Expand Down

0 comments on commit 44a2cf7

Please sign in to comment.