1'use strict'; 2const common = require('../common'); 3 4// This test verifies that DEP0018 does not occur when rejections are handled. 5common.disableCrashOnUnhandledRejection(); 6process.on('warning', common.mustNotCall()); 7process.on('unhandledRejection', common.mustCall()); 8Promise.reject(new Error()); 9