Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-203278-1.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 var gTestfile = 'regress-203278-1.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 203278;
9 var summary = 'Don\'t crash in recursive js_MarkGCThing';
10 var actual = 'FAIL';
11 var expect = 'PASS';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 function test1() {}
17 function test() { test1.call(this); }
18 test.prototype = new test1();
19
20 var length = 1024 * 1024 - 1;
21 var obj = new test();
22 var first = obj;
23 for(var i = 0 ; i < length ; i++) {
24 obj.next = new test();
25 obj = obj.next;
26 }
27
28 actual = 'PASS';
29
30 reportCompare(expect, actual, summary);
31