summaryrefslogtreecommitdiff
path: root/test/parallel
diff options
context:
space:
mode:
authorsorarize@gmail.com <sorarize@gmail.com>2017-11-22 16:21:02 +0800
committerJames M Snell <jasnell@gmail.com>2017-11-22 16:14:59 -0800
commit6b8740774da627ad26eae9bc693db0ef561ad080 (patch)
tree71e7802fe021783b29db81e549e073565ed5c5a0 /test/parallel
parent01dc6d26dc1313500551fb95ea9ff6503a3ddaea (diff)
downloadandroid-node-v8-6b8740774da627ad26eae9bc693db0ef561ad080.tar.gz
android-node-v8-6b8740774da627ad26eae9bc693db0ef561ad080.tar.bz2
android-node-v8-6b8740774da627ad26eae9bc693db0ef561ad080.zip
test: use common.crashOnUnhandledRejection()
Add common.crashOnUnhandledRejection to test/parallel/test-microtask-queue-run.js PR-URL: https://github.com/nodejs/node/pull/17232 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'test/parallel')
-rw-r--r--test/parallel/test-microtask-queue-run.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/parallel/test-microtask-queue-run.js b/test/parallel/test-microtask-queue-run.js
index 85eb770da1..ba9cf6731e 100644
--- a/test/parallel/test-microtask-queue-run.js
+++ b/test/parallel/test-microtask-queue-run.js
@@ -20,9 +20,11 @@
// USE OR OTHER DEALINGS IN THE SOFTWARE.
'use strict';
-require('../common');
+const common = require('../common');
const assert = require('assert');
+common.crashOnUnhandledRejection();
+
function enqueueMicrotask(fn) {
Promise.resolve().then(fn);
}