Skip to content

Commit caa59b9

Browse files
KyleYuMylesBorins
authored andcommitted
test: add common.crashOnUnhandledRejection()
add common.crashOnUnhandledRejection() in test-wasm-simple.js PR-URL: #17236 Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Myles Borins <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent c232542 commit caa59b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/parallel/test-wasm-simple.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
'use strict';
22

3-
require('../common');
4-
3+
const common = require('../common');
54
const assert = require('assert');
65
const fixtures = require('../common/fixtures');
76

7+
common.crashOnUnhandledRejection();
8+
89
const buffer = fixtures.readSync('test.wasm');
910

1011
assert.ok(WebAssembly.validate(buffer), 'Buffer should be valid WebAssembly');

0 commit comments

Comments
 (0)