Skip to content

Commit a9b57fc

Browse files
committed
Updated coincident + reversed previous changes
1 parent e92f08c commit a9b57fc

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

docs/index.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

esm/worker/_template.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,11 @@ add('message', ({ data: { options, config: baseURL, configURL, code, hooks } })
122122

123123
// there's no way to query the DOM, use foreign CustomEvent and so on
124124
// in case there's no SharedArrayBuffer around.
125-
let notify, currentScript = null, target = '';
125+
let CustomEvent, document, notify, currentScript = null, target = '';
126126
if (syncMainAndWorker) {
127-
currentScript = id && window.document.getElementById(id) || null;
128-
notify = kind => dispatch(currentScript, custom || type, kind, true, window.CustomEvent);
127+
({ CustomEvent, document } = window);
128+
currentScript = id && document.getElementById(id) || null;
129+
notify = kind => dispatch(currentScript, custom || type, kind, true, CustomEvent);
129130
}
130131

131132
// TODO: even this is problematic without SharedArrayBuffer

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@
7878
"@webreflection/idb-map": "^0.3.1",
7979
"basic-devtools": "^0.1.6",
8080
"codedent": "^0.1.2",
81-
"coincident": "^2.1.4",
81+
"coincident": "^2.1.5",
8282
"gc-hook": "^0.4.1",
8383
"html-escaper": "^3.0.3",
8484
"proxy-target": "^3.0.2",
8585
"sticky-module": "^0.1.1",
8686
"to-json-callback": "^0.1.1"
8787
},
8888
"worker": {
89-
"blob": "sha256-tgJwlipNdA+alH1VirlPwq87PFbjdxaVJ6OpJflekE0="
89+
"blob": "sha256-eVizgwvZYPrPNvrH4k4nQSVPsGv4MfdGuGWgQdpQvm0="
9090
}
9191
}

0 commit comments

Comments
 (0)