Bump packages to fix linter
This commit is contained in:
parent
ed9506bbaf
commit
0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions
15
node_modules/ava/lib/plugin-support/shared-worker-loader.js
generated
vendored
15
node_modules/ava/lib/plugin-support/shared-worker-loader.js
generated
vendored
|
|
@ -156,7 +156,7 @@ function broadcastMessage(data) {
|
|||
}
|
||||
|
||||
async function loadFactory() {
|
||||
const {default: factory} = await import(workerData.filename); // eslint-disable-line node/no-unsupported-features/es-syntax
|
||||
const {default: factory} = await import(workerData.filename);
|
||||
return factory;
|
||||
}
|
||||
|
||||
|
|
@ -166,7 +166,8 @@ let signalAvailable = () => {
|
|||
};
|
||||
|
||||
let fatal;
|
||||
loadFactory(workerData.filename).then(factory => {
|
||||
try {
|
||||
const factory = await loadFactory(workerData.filename);
|
||||
if (typeof factory !== 'function') {
|
||||
throw new TypeError(`Missing default factory function export for shared worker plugin at ${workerData.filename}`);
|
||||
}
|
||||
|
|
@ -236,14 +237,12 @@ loadFactory(workerData.filename).then(factory => {
|
|||
};
|
||||
},
|
||||
});
|
||||
}).catch(error => {
|
||||
if (fatal === undefined) {
|
||||
fatal = error;
|
||||
}
|
||||
}).finally(() => {
|
||||
} catch (error) {
|
||||
fatal = fatal ?? error;
|
||||
} finally {
|
||||
if (fatal !== undefined) {
|
||||
process.nextTick(() => {
|
||||
throw fatal;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue