Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit caa59b9

Browse filesBrowse files
KyleYuMylesBorins
authored andcommitted
test: add common.crashOnUnhandledRejection()
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>
1 parent c232542 commit caa59b9
Copy full SHA for caa59b9

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Open diff view settings
Collapse file

‎test/parallel/test-wasm-simple.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-wasm-simple.js
+3-2Lines changed: 3 additions & 2 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.