MCPcopy Create free account
hub / github.com/nodejs/node / assertTrapsOneOf

Function assertTrapsOneOf

deps/v8/test/mjsunit/wasm/wasm-module-builder.js:1112–1117  ·  view source on GitHub ↗
(traps, code)

Source from the content-addressed store, hash-verified

1110}
1111
1112function assertTrapsOneOf(traps, code) {
1113 const errorChecker = new RegExp(
1114 '(' + traps.map(trap => kTrapMsgs[trap]).join('|') + ')'
1115 );
1116 assertThrows(code, WebAssembly.RuntimeError, errorChecker);
1117}
1118
1119class Binary {
1120 constructor() {

Callers 4

VerifyBoundsCheck64Function · 0.85
VerifyBoundsCheckFunction · 0.85

Calls 3

mapMethod · 0.65
assertThrowsFunction · 0.50
joinMethod · 0.45

Tested by

no test coverage detected