From caa59b9a47f2809d78828973507cf2fd05a94434 Mon Sep 17 00:00:00 2001 From: Kyle Yu Date: Wed, 22 Nov 2017 16:56:37 +0800 Subject: [PATCH] test: add common.crashOnUnhandledRejection() add common.crashOnUnhandledRejection() in test-wasm-simple.js PR-URL: https://github.com/nodejs/node/pull/17236 Reviewed-By: Gireesh Punathil Reviewed-By: Myles Borins Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- test/parallel/test-wasm-simple.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-wasm-simple.js b/test/parallel/test-wasm-simple.js index 6227875fd8a9df..02a97ec2c9455f 100644 --- a/test/parallel/test-wasm-simple.js +++ b/test/parallel/test-wasm-simple.js @@ -1,10 +1,11 @@ 'use strict'; -require('../common'); - +const common = require('../common'); const assert = require('assert'); const fixtures = require('../common/fixtures'); +common.crashOnUnhandledRejection(); + const buffer = fixtures.readSync('test.wasm'); assert.ok(WebAssembly.validate(buffer), 'Buffer should be valid WebAssembly');