michael@0: /* michael@0: * Any copyright is dedicated to the Public Domain. michael@0: * http://creativecommons.org/licenses/publicdomain/ michael@0: * Contributor: michael@0: * Jeff Walden michael@0: */ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 880591; michael@0: var summary = michael@0: "Assertion redefining length property of a frozen dictionary-mode array"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: function convertToDictionaryMode(arr) michael@0: { michael@0: Object.defineProperty(arr, 0, { configurable: true }); michael@0: Object.defineProperty(arr, 1, { configurable: true }); michael@0: delete arr[0]; michael@0: } michael@0: michael@0: var arr = []; michael@0: convertToDictionaryMode(arr); michael@0: Object.freeze(arr); michael@0: Object.defineProperty(arr, "length", {}); michael@0: michael@0: /******************************************************************************/ michael@0: michael@0: if (typeof reportCompare === "function") michael@0: reportCompare(true, true); michael@0: michael@0: print("Tests complete");