Skip to content

Commit

Permalink
test: add common.crashOnUnhandledRejection()
Browse files Browse the repository at this point in the history
add common.crashOnUnhandledRejection() in test-wasm-simple.js

PR-URL: #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>
  • Loading branch information
KyleYu authored and jasnell committed Nov 22, 2017
1 parent 5d6693f commit 9609398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/parallel/test-wasm-simple.js
Original file line number Diff line number Diff line change
@@ -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');
Expand Down

0 comments on commit 9609398

Please sign in to comment.