Fix #1766 - Ensure correct hooks types (#1772)

This commit is contained in:
Andrea Giammarchi
2023-09-29 14:01:35 +02:00
committed by GitHub
parent 7a23e355b9
commit 5c4e400d32
5 changed files with 29 additions and 12 deletions

View File

@@ -137,6 +137,8 @@ for (const [TYPE, interpreter] of TYPES) {
...workerHooks,
onWorkerReady(_, xworker) {
assign(xworker.sync, sync);
for (const callback of hooks.onWorkerReady)
callback(_, xworker);
},
onBeforeRun(wrap, element) {
currentElement = element;