|
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!"); |