Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-458679-02.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 gTestfile = 'regress-458679-02.js';
8
9 var summary = 'GetXMLEntity should not assume FastAppendChar is infallible';
10 var BUGNUMBER = 458679;
11 var actual = '';
12 var expect = '';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 function stringOfLength(n)
18 {
19 if (n == 0) {
20 return "";
21 } else if (n == 1) {
22 return "<";
23 } else {
24 var r = n % 2;
25 var d = (n - r) / 2;
26 var y = stringOfLength(d);
27 return y + y + stringOfLength(r);
28 }
29 }
30
31 try
32 {
33
34 void stringOfLength(4435455);
35 x = stringOfLength(14435455);
36 <xxx>{x}</xxx>;
37 }
38 catch(ex)
39 {
40 }
41
42 TEST(1, expect, actual);
43
44 END();