Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 // |reftest| skip
2 // Any copyright is dedicated to the Public Domain.
3 // http://creativecommons.org/licenses/publicdomain/
5 //-----------------------------------------------------------------------------
6 var BUGNUMBER = 600128;
7 var summary =
8 "Properly handle attempted addition of properties to non-extensible objects";
10 print(BUGNUMBER + ": " + summary);
12 /**************
13 * BEGIN TEST *
14 **************/
16 var o = Object.freeze({});
17 for (var i = 0; i < 10; i++)
18 print(o.u = "");
20 Object.freeze(this);
21 for (let j = 0; j < 10; j++)
22 print(u = "");
25 /******************************************************************************/
27 if (typeof reportCompare === "function")
28 reportCompare(true, true);
30 print("All tests passed!");