summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRoth Peng <roth1002@gmail.com>2017-11-22 16:49:15 +0800
committerJames M Snell <jasnell@gmail.com>2017-11-22 07:32:38 -0800
commit1cc8ec3adba1e8e768f1c1d797bc69f88d6c814a (patch)
tree27093f360ab85594d8a0869aa6f7bde50da33f7c /test
parent339e247e3fcf987b0d83f0df37be7ff0f6dcfe47 (diff)
downloadandroid-node-v8-1cc8ec3adba1e8e768f1c1d797bc69f88d6c814a.tar.gz
android-node-v8-1cc8ec3adba1e8e768f1c1d797bc69f88d6c814a.tar.bz2
android-node-v8-1cc8ec3adba1e8e768f1c1d797bc69f88d6c814a.zip
test: use crashOnUnhandledRejection
Add common.crashOnUnhandledRejection to test/parallell/test-microtask-queue-run-domain.js PR-URL: https://github.com/nodejs/node/pull/17226 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test')
-rw-r--r--test/parallel/test-microtask-queue-run-domain.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-microtask-queue-run-domain.js b/test/parallel/test-microtask-queue-run-domain.js
index 39baf93023..a895504fc2 100644
--- a/test/parallel/test-microtask-queue-run-domain.js
+++ b/test/parallel/test-microtask-queue-run-domain.js
@@ -20,7 +20,7 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
-require('../common');
+const common = require('../common');
const assert = require('assert');
// Requiring the domain module here changes the function that is used by node to
@@ -30,6 +30,8 @@ const assert = require('assert');
// removed.
require('domain');
+common.crashOnUnhandledRejection();
+
function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}