11cb0ef41Sopenharmony_ci'use strict';
21cb0ef41Sopenharmony_ciconst common = require('../common');
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci// This test verifies that DEP0018 does not occur when rejections are handled.
51cb0ef41Sopenharmony_ciprocess.on('warning', common.mustNotCall());
61cb0ef41Sopenharmony_ciprocess.on('unhandledRejection', common.mustCall());
71cb0ef41Sopenharmony_ciPromise.reject(new Error());
8