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

Function shouldBeUndefined

deps/v8/test/webkit/cached-call-uninitialized-arguments.js:32–47  ·  view source on GitHub ↗
(_a)

Source from the content-addressed store, hash-verified

30 function callback(element, index, array, arg4, arg5, arg6) {
31
32 function shouldBeUndefined(_a) {
33 var exception;
34 var _av;
35 try {
36 _av = eval(_a);
37 } catch (e) {
38 exception = e;
39 }
40
41 if (exception)
42 testFailed(_a + " should be undefined. Threw exception " + exception);
43 else if (typeof _av == "undefined")
44 testPassed(_a + " is undefined.");
45 else
46 testFailed(_a + " should be undefined. Was " + _av);
47 }
48
49 shouldBeUndefined("arg4");
50 shouldBeUndefined("arg5");

Callers 1

callbackFunction · 0.70

Calls 3

testFailedFunction · 0.85
testPassedFunction · 0.85
evalFunction · 0.50

Tested by

no test coverage detected