node/test/fixtures/test-runner/extraneous_set_timeout_async.mjs
MURAKAMI Masahiko 06603c44a5
test_runner: avoid swallowing of asynchronously thrown errors
Fixes: https://github.com/nodejs/node/issues/44612
PR-URL: https://github.com/nodejs/node/pull/45264
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
2022-11-07 12:02:56 +00:00

5 lines
131 B
JavaScript

import test from 'node:test';
test('extraneous async activity test', () => {
setTimeout(() => { throw new Error(); }, 100);
});