michael@0: // |reftest| skip-if(Android) michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: michael@0: * Christian Holler michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 623301; michael@0: var summary = "Properly root argument names during Function()"; michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: if (typeof gczeal === "function") michael@0: gczeal(2); michael@0: michael@0: function crashMe(n) michael@0: { michael@0: var nasty = []; michael@0: while (n--) michael@0: nasty.push("a" + n); michael@0: return Function.apply(null, nasty); michael@0: } michael@0: michael@0: var count = 64; // exact value not important michael@0: assertEq(crashMe(count + 1).length, count); michael@0: michael@0: if (typeof gczeal === "function") michael@0: gczeal(0); // reset michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("All tests passed!");