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 = 650574; michael@0: var summary = 'Check for too-deep stack when converting a value to source'; 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: var e = Error(''); michael@0: e.fileName = e; michael@0: e.toSource(); michael@0: throw new Error("should have thrown"); michael@0: } michael@0: catch (e) michael@0: { michael@0: assertEq(e instanceof InternalError, true, michael@0: "should have thrown for over-recursion"); 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!");