js/src/tests/js1_8_5/extensions/set-property-non-extensible.js

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:f4727b70975d
1 // |reftest| skip
2 // Any copyright is dedicated to the Public Domain.
3 // http://creativecommons.org/licenses/publicdomain/
4
5 //-----------------------------------------------------------------------------
6 var BUGNUMBER = 600128;
7 var summary =
8 "Properly handle attempted addition of properties to non-extensible objects";
9
10 print(BUGNUMBER + ": " + summary);
11
12 /**************
13 * BEGIN TEST *
14 **************/
15
16 var o = Object.freeze({});
17 for (var i = 0; i < 10; i++)
18 print(o.u = "");
19
20 Object.freeze(this);
21 for (let j = 0; j < 10; j++)
22 print(u = "");
23
24
25 /******************************************************************************/
26
27 if (typeof reportCompare === "function")
28 reportCompare(true, true);
29
30 print("All tests passed!");

mercurial