Skip to content

Commit d3eb851

Browse files
authored
Remove non-existing web worker globals (#226)
1 parent 89a0361 commit d3eb851

File tree

3 files changed

+1
-25
lines changed

3 files changed

+1
-25
lines changed

data/worker.mjs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default {
55
AbortController: false,
66
AbortSignal: false,
77
addEventListener: false,
8-
applicationCache: false,
98
atob: false,
109
AudioData: false,
1110
AudioDecoder: false,
@@ -149,14 +148,10 @@ export default {
149148
Notification: false,
150149
OffscreenCanvas: false,
151150
OffscreenCanvasRenderingContext2D: false,
152-
onclose: true,
153-
onconnect: true,
154151
onerror: true,
155152
onlanguagechange: true,
156153
onmessage: true,
157154
onmessageerror: true,
158-
onoffline: true,
159-
ononline: true,
160155
onrejectionhandled: true,
161156
onunhandledrejection: true,
162157
origin: false,
@@ -166,12 +161,10 @@ export default {
166161
PerformanceEntry: false,
167162
PerformanceMark: false,
168163
PerformanceMeasure: false,
169-
PerformanceNavigation: false,
170164
PerformanceObserver: false,
171165
PerformanceObserverEntryList: false,
172166
PerformanceResourceTiming: false,
173167
PerformanceServerTiming: false,
174-
PerformanceTiming: false,
175168
PeriodicSyncManager: false,
176169
Permissions: false,
177170
PermissionStatus: false,

globals.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,7 +1440,6 @@
14401440
"AbortController": false,
14411441
"AbortSignal": false,
14421442
"addEventListener": false,
1443-
"applicationCache": false,
14441443
"atob": false,
14451444
"AudioData": false,
14461445
"AudioDecoder": false,
@@ -1584,14 +1583,10 @@
15841583
"Notification": false,
15851584
"OffscreenCanvas": false,
15861585
"OffscreenCanvasRenderingContext2D": false,
1587-
"onclose": true,
1588-
"onconnect": true,
15891586
"onerror": true,
15901587
"onlanguagechange": true,
15911588
"onmessage": true,
15921589
"onmessageerror": true,
1593-
"onoffline": true,
1594-
"ononline": true,
15951590
"onrejectionhandled": true,
15961591
"onunhandledrejection": true,
15971592
"origin": false,
@@ -1601,12 +1596,10 @@
16011596
"PerformanceEntry": false,
16021597
"PerformanceMark": false,
16031598
"PerformanceMeasure": false,
1604-
"PerformanceNavigation": false,
16051599
"PerformanceObserver": false,
16061600
"PerformanceObserverEntryList": false,
16071601
"PerformanceResourceTiming": false,
16081602
"PerformanceServerTiming": false,
1609-
"PerformanceTiming": false,
16101603
"PeriodicSyncManager": false,
16111604
"Permissions": false,
16121605
"PermissionStatus": false,

scripts/get-browser-globals.mjs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,7 @@ async function getWebWorkerGlobals() {
214214
const properties = await runInWebWorker(getGlobalThisProperties);
215215

216216
return createGlobals(
217-
[
218-
...properties,
219-
// Existing data, need confirm
220-
'applicationCache',
221-
'onclose',
222-
'onconnect',
223-
'onoffline',
224-
'ononline',
225-
'PerformanceNavigation',
226-
'PerformanceTiming',
227-
],
217+
properties,
228218
{
229219
shouldExclude: name => name.startsWith('__'),
230220
isWritable: name => name.startsWith('on'),

0 commit comments

Comments
 (0)