Debian Codegraph @

rhino/testsrc/tests/js1_5/Function/regress-338121-03.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-338121-03.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 338121;
9 var summary = 'Issues with JS_ARENA_ALLOCATE_CAST';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 try
17 {
18 var fe="vv";
19
20 for (i=0; i<24; i++)
21 fe += fe;
22
23 var fu=new Function(
24 fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
25 fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
26 fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe, fe,
27 fe, fe, fe,
28 "done"
29 );
30
31 //alert("fu="+fu);
32 //print("fu="+fu);
33 var fuout = 'fu=' + fu;
34 }
35 catch(ex)
36 {
37 expect = 'InternalError: script stack space quota is exhausted';
38 actual = ex + '';
39 print('Caught ' + ex);
40 }
41 print('Done');
42
43 reportCompare(expect, actual, summary);