1 function fooMaker(xParam) {
4 for (var i = 0; i < 1000; ++i)
10 var foo = fooMaker(42);
14 for (var i = 0; i < 10000; ++i) {
16 if (result != 42 * 1000 + 5)
17 throw "Error: bad result: " + result;
20 var result = fooMaker(23)(5);
21 if (result != 23 * 1000 + 5)
22 throw "Error: bad result: " + result;