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

Function testTraceNativeConversion

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

Source from the content-addressed store, hash-verified

264// Tests that a native conversion function is included in the
265// stack trace.
266function testTraceNativeConversion(nativeFunc) {
267 var nativeFuncName = nativeFunc.name;
268 try {
269 nativeFunc(thrower);
270 assertUnreachable(nativeFuncName);
271 } catch (e) {
272 assertTrue(e.stack.indexOf(nativeFuncName) >= 0, nativeFuncName);
273 }
274}
275
276
277function testOmittedBuiltin(throwing, omitted) {

Callers 1

stack-traces.jsFile · 0.70

Calls 3

assertUnreachableFunction · 0.85
assertTrueFunction · 0.70
indexOfMethod · 0.45

Tested by

no test coverage detected