michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 653789; michael@0: var summary = 'Check for too-deep stack when calling toLocaleString'; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: try michael@0: { michael@0: "" + { toString: Object.prototype.toLocaleString }; michael@0: throw new Error("should have thrown on over-recursion"); michael@0: } michael@0: catch (e) michael@0: { michael@0: assertEq(e instanceof InternalError, true); michael@0: } 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!");