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 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 */
6 var BUGNUMBER = 533254;
7 var summary = 'init-method late in table-big initialiser screwup';
9 printBugNumber(BUGNUMBER);
10 printStatus(summary);
12 function f() {
13 var proto = {p8:8};
14 var obj = {
15 p0:0, p1:1, p2:2, p3:3, p4:4, p5:5, p6:6, p7:7, p8:8, p9:9,
16 p10:0, p11:1, p12:2, p13:3, p14:4, p15:5, p16:6, p17:7, p18:8, p19:9,
17 m: function() { return 42; }
18 };
19 return obj;
20 }
21 var expect = f(),
22 actual = f();
24 expect += '';
25 actual += '';
26 reportCompare(expect, actual, summary);
28 printStatus("All tests passed!");