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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial