Debian Codegraph @

rhino/testsrc/tests/js1_7/GC/regress-341675.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-341675.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 341675;
9 var summary = 'Iterators: still infinite loop during GC';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 var globalToPokeGC = {};
17
18 function generator()
19 {
20 try {
21 yield [];
22 } finally {
23 make_iterator();
24 }
25 }
26
27 function make_iterator()
28 {
29 var iter = generator();
30 iter.next();
31 }
32
33 make_iterator();
34 gc();
35
36 reportCompare(expect, actual, summary);