Debian Codegraph @

rhino/testsrc/tests/js1_7/extensions/regress-476257.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-476257.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 476257;
9 var summary = 'Do not assert: !JS_ON_TRACE(cx)';
10 var actual = '';
11 var expect = '';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 jit(true);
17
18 function f1() {
19 try
20 {
21 __proto__.functional getter = function ()
22 {
23 if (typeof gczeal == 'function') { gczeal(0); }
24 }
25 for each (let [[]] in [true, new Boolean(true), new Boolean(true)]) {}
26 }
27 catch(ex)
28 {
29 print(ex + '');
30 }
31 }
32
33 function f2() {
34 try
35 {
36 __proto__.functional getter = function ()
37 {
38 if (typeof dis == 'function') { dis(); }
39 }
40 for each (let [[]] in [true, new Boolean(true), new Boolean(true)]) {}
41 }
42 catch(ex)
43 {
44 print(ex + '');
45 }
46 }
47
48 f1();
49 f2();
50
51 jit(false);
52
53 reportCompare(expect, actual, summary);