Skip to content

Commit

Permalink
fixup: clear timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
targos committed Jan 15, 2023
1 parent d6cc662 commit 1cc9f59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/fixtures/es-module-loaders/hook-resolve-type.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export function globalPreload({ port }) {
// Artificial timeout to keep the event loop alive.
// https://bugs.chromium.org/p/v8/issues/detail?id=13238
// TODO(targos) Remove when V8 issue is resolved.
setTimeout(() => {}, 100);
const timeout = setTimeout(() => {}, 1_000);
await Atomics.waitAsync(int32, 0, 0).value;
clearTimeout(timeout);
return receiveMessageOnPort(port).message;
};
`;
Expand Down

0 comments on commit 1cc9f59

Please sign in to comment.