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

Function test

deps/v8/test/mjsunit/bugs/bug-941049.js:65–75  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

63
64
65function test(f) {
66 assertTrue(null === f.arguments);
67 var args = f(1,2,3);
68 assertTrue(null === f.arguments);
69
70 assertEquals(3, args.length);
71 assertEquals(999, args[0]);
72 assertEquals(2, args[1]);
73 assertEquals(3, args[2]);
74 assertEquals('kallevip', args.extra);
75}
76
77test(f0);
78test(f1);

Callers 1

bug-941049.jsFile · 0.70

Calls 3

assertTrueFunction · 0.50
fFunction · 0.50
assertEqualsFunction · 0.50

Tested by

no test coverage detected