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

Function testTraceNativeConversion

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

Source from the content-addressed store, hash-verified

48// Tests that a native conversion function is included in the
49// stack trace.
50function testTraceNativeConversion(nativeFunc) {
51 var nativeFuncName = nativeFunc.name;
52 try {
53 nativeFunc(thrower);
54 assertUnreachable(nativeFuncName);
55 } catch (e) {
56 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
57 }
58}
59
60testTraceNativeConversion(String); // Does ToString on argument.
61testTraceNativeConversion(RegExp); // Does ToString on argument.

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…