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

Function foo

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

Source from the content-addressed store, hash-verified

26// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
28function foo(x) {
29 var a = arguments;
30 function bar(i) {
31 assertEquals(i, ++a[0]);
32 assertEquals(i, x);
33 };
34 bar(1);
35 bar(2);
36 bar(3);
37 return bar;
38}
39var baz = foo(0);
40baz(4);
41baz(5);

Callers 1

Calls 1

barFunction · 0.70

Tested by

no test coverage detected