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

Function testTraceNativeConstructor

deps/v8/test/mjsunit/stack-traces-2.js:38–46  ·  view source on GitHub ↗
(nativeFunc)

Source from the content-addressed store, hash-verified

36// Tests that a native constructor function is included in the
37// stack trace.
38function testTraceNativeConstructor(nativeFunc) {
39 var nativeFuncName = nativeFunc.name;
40 try {
41 new nativeFunc(thrower);
42 assertUnreachable(nativeFuncName);
43 } catch (e) {
44 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
45 }
46}
47
48// Tests that a native conversion function is included in the
49// stack trace.

Callers 1

stack-traces-2.jsFile · 0.70

Calls 3

assertUnreachableFunction · 0.85
assertTrueFunction · 0.70
indexOfMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…