MCPcopy Index your code
hub / github.com/nodejs/node / test

Function test

deps/v8/test/mjsunit/messages.js:7–16  ·  view source on GitHub ↗
(f, expected, type)

Source from the content-addressed store, hash-verified

5// Flags: --allow-natives-syntax --stack-size=100 --harmony
6
7function test(f, expected, type) {
8 try {
9 f();
10 } catch (e) {
11 assertInstanceof(e, type);
12 assertEquals(expected, e.message);
13 return;
14 }
15 assertUnreachable("Exception expected");
16}
17
18const typedArrayConstructors = [
19 Uint8Array,

Callers 1

messages.jsFile · 0.70

Calls 4

assertInstanceofFunction · 0.85
assertUnreachableFunction · 0.85
fFunction · 0.70
assertEqualsFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…