js/src/tests/ecma_3/FunExpr/regress-533254.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:e741c9c88953
1 /*
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/licenses/publicdomain/
4 */
5
6 var BUGNUMBER = 533254;
7 var summary = 'init-method late in table-big initialiser screwup';
8
9 printBugNumber(BUGNUMBER);
10 printStatus(summary);
11
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();
23
24 expect += '';
25 actual += '';
26 reportCompare(expect, actual, summary);
27
28 printStatus("All tests passed!");

mercurial