summaryrefslogtreecommitdiff
path: root/test/parallel/test-wasm-simple.js
diff options
context:
space:
mode:
authorKyle Yu <chaukwai@gmail.com>2017-11-22 16:56:37 +0800
committerJames M Snell <jasnell@gmail.com>2017-11-22 08:01:14 -0800
commit96093981deb30ee00eb0a72301cd9a02878bae87 (patch)
treeeef81daec80105f66de91df68fe27183af07e1d4 /test/parallel/test-wasm-simple.js
parent5d6693fc07ff1e959fec80f169fd354c64841a25 (diff)
downloadandroid-node-v8-96093981deb30ee00eb0a72301cd9a02878bae87.tar.gz
android-node-v8-96093981deb30ee00eb0a72301cd9a02878bae87.tar.bz2
android-node-v8-96093981deb30ee00eb0a72301cd9a02878bae87.zip
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 <gpunathi@in.ibm.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-wasm-simple.js')
-rw-r--r--test/parallel/test-wasm-simple.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/parallel/test-wasm-simple.js b/test/parallel/test-wasm-simple.js
index 6227875fd8..02a97ec2c9 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');