Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-453024.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-453024.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 453024;
9 var summary = 'Do not assert: vp + 2 + argc <= (jsval *) cx->stackPool.current->avail';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13 if (typeof window == 'undefined')
14 {
15 reportCompare(true, true, summary + ': test requires browser.');
16 }
17 else
18 {
19 gDelayTestDriverEnd = true;
20 var j = 0;
21
22 function test()
23 {
24 enterFunc ('test');
25 printBugNumber(BUGNUMBER);
26 printStatus (summary);
27
28 for (var i = 0; i < 2000; ++i) {
29 var ns = document.createElementNS("http://www.w3.org/1999/xhtml", "script");
30 var nt = document.createTextNode("++j");
31 ns.appendChild(nt);
32 document.body.appendChild(ns);
33 }
34
35 gDelayTestDriverEnd = false;
36
37 reportCompare(expect, actual, summary);
38
39 jsTestDriverEnd();
40
41 exitFunc ('test');
42 }
43
44 window.addEventListener('load', test, false);
45
46 }