Debian Codegraph @

rhino/testsrc/tests/js1_8/regress/regress-477234.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-477234.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 477234;
9 var summary = 'Do not assert: v != JSVAL_ERROR_COOKIE';
10 var actual = '';
11 var expect = '';
12
13
14 //-----------------------------------------------------------------------------
15 test();
16 //-----------------------------------------------------------------------------
17
18 function test()
19 {
20 enterFunc ('test');
21 printBugNumber(BUGNUMBER);
22 printStatus (summary);
23
24 jit(true);
25
26 for (iters = 0; iters < 11500; ++iters) {
27 for each (let x in ['', '', '']){}
28 eval("__proto__.x getter = function(){}");
29 var a = uneval;
30 delete uneval;
31 uneval = a;
32 var b = toSource;
33 delete toSource;
34 toSource = b;
35 var c = toString;
36 delete toString;
37 toString = c;
38 }
39
40 jit(true);
41
42 delete __proto__.x;
43
44 reportCompare(expect, actual, summary);
45
46 exitFunc ('test');
47 }