mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
853f57239c
Migrate the remaining error tests in the `test/message` folder from Python to JS. Fixes: https://github.com/nodejs/node/issues/47707 PR-URL: https://github.com/nodejs/node/pull/49721 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
6 lines
191 B
JavaScript
6 lines
191 B
JavaScript
// Flags: --trace-warnings --unhandled-rejections=warn
|
|
'use strict';
|
|
require('../../common');
|
|
const p = Promise.reject(new Error('This was rejected'));
|
|
setImmediate(() => p.catch(() => {}));
|