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>
This commit is contained in:
parent
5d6693fc07
commit
96093981de
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user