Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-360969-05.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-360969-05.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 360969;
9 var summary = '2^17: local function';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13 var global = this;
14
15 //-----------------------------------------------------------------------------
16 test();
17
18 //-----------------------------------------------------------------------------
19
20 function test()
21 {
22 enterFunc ('test');
23 printBugNumber(BUGNUMBER);
24 printStatus (summary);
25
26 var start = new Date();
27 var p;
28 var i;
29 var limit = 2 << 16;
30
31 for (var i = 0; i < limit; i++)
32 {
33 eval('function pf' + i + '() {}');
34 }
35
36 reportCompare(expect, actual, summary);
37
38 var stop = new Date();
39
40 print('Elapsed time: ' + Math.floor((stop - start)/1000) + ' seconds');
41
42 exitFunc ('test');
43 }
44