• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --unhandled-rejections=warn-with-error-code
2'use strict';
3
4const common = require('../common');
5const assert = require('assert');
6
7common.disableCrashOnUnhandledRejection();
8
9Promise.reject(new Error('alas'));
10process.on('exit', assert.strictEqual.bind(null, 1));
11