summaryrefslogtreecommitdiff
path: root/test/message/promise_unhandled_warn_with_error.js
blob: e07f52039101a36d3df1449fa4d4a9a0683ea62c (plain)
1
2
3
4
5
6
7
8
// Flags: --unhandled-rejections=warn-with-error-code
'use strict';

require('../common');
const assert = require('assert');

Promise.reject(new Error('alas'));
process.on('exit', assert.strictEqual.bind(null, 1));