Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-356250.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-356250.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 356250;
9 var summary = 'Do not assert: !fp->fun || !(fp->fun->flags & JSFUN_HEAVYWEIGHT) || fp->callobj';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13 (function() { eval("(function() { })"); })();
14 reportCompare(expect, actual, summary + ': nested 0');
15
16 //-----------------------------------------------------------------------------
17 test1();
18 test2();
19 //-----------------------------------------------------------------------------
20
21 function test1()
22 {
23 enterFunc ('test');
24 printBugNumber(BUGNUMBER);
25 printStatus (summary);
26
27 (function() { eval("(function() { })"); })();
28
29 reportCompare(expect, actual, summary + ': nested 1');
30
31 exitFunc ('test');
32 }
33
34 function test2()
35 {
36 enterFunc ('test');
37 printBugNumber(BUGNUMBER);
38 printStatus (summary);
39
40 (function () {(function() { eval("(function() { })"); })();})();
41
42 reportCompare(expect, actual, summary + ': nested 2');
43
44 exitFunc ('test');
45 }