mirror of https://github.com/nodejs/node.git
6 lines
160 B
JavaScript
6 lines
160 B
JavaScript
|
// Flags: --trace-warnings
|
||
|
'use strict';
|
||
|
require('../common');
|
||
|
const p = Promise.reject(new Error('This was rejected'));
|
||
|
setImmediate(() => p.catch(() => {}));
|