michael@0: // |reftest| skip michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: michael@0: //----------------------------------------------------------------------------- michael@0: var BUGNUMBER = 600128; michael@0: var summary = michael@0: "Properly handle attempted addition of properties to non-extensible objects"; michael@0: michael@0: print(BUGNUMBER + ": " + summary); michael@0: michael@0: /************** michael@0: * BEGIN TEST * michael@0: **************/ michael@0: michael@0: var o = Object.freeze({}); michael@0: for (var i = 0; i < 10; i++) michael@0: print(o.u = ""); michael@0: michael@0: Object.freeze(this); michael@0: for (let j = 0; j < 10; j++) michael@0: print(u = ""); 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!");