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

Function callback

deps/v8/test/webkit/cached-call-uninitialized-arguments.js:30–52  ·  view source on GitHub ↗
(element, index, array, arg4, arg5, arg6)

Source from the content-addressed store, hash-verified

28
29function doForEach(arr) {
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");
51 shouldBeUndefined("arg6");
52 }
53
54 arr.forEach(callback);
55}

Callers 3

testharness.jsFile · 0.50
add_test_done_callbackFunction · 0.50
cleanup_doneFunction · 0.50

Calls 1

shouldBeUndefinedFunction · 0.70

Tested by

no test coverage detected