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: var gTestfile = "error-expando-reconfigure.js" michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 961494; michael@0: var summary = michael@0: "Reconfiguring the first expando property added to an Error object " + michael@0: "shouldn't assert"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: var err = new Error(); // no message argument => no err.message property michael@0: err.expando = 17; michael@0: Object.defineProperty(err, "expando", { configurable: false }); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");