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

Function foo2

deps/v8/test/mjsunit/arguments-escape.js:45–55  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

43
44// Test writing a non-smi.
45function foo2(x) {
46 var a = arguments;
47 function bar2(i) {
48 assertEquals(i, ++a[0]);
49 assertEquals(i, x);
50 };
51 bar2(1.5);
52 bar2(2.5);
53 bar2(3.5);
54 return bar2;
55}
56var baz2 = foo2(0.5);
57baz2(4.5);
58baz2(5.5);

Callers 1

Calls 1

bar2Function · 0.85

Tested by

no test coverage detected