Debian Codegraph @

rhino/testsrc/tests/js1_5/extensions/regress-443569.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-443569.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 443569;
9 var summary = 'Do not assert: OBJ_IS_NATIVE(obj)';
10 var actual = 'No Crash';
11 var expect = 'No Crash';
12
13
14 printBugNumber(BUGNUMBER);
15 printStatus (summary);
16
17 if (typeof window != 'undefined')
18 {
19 // delay test driver end
20 gDelayTestDriverEnd = true;
21
22 window.addEventListener("load", boom, false);
23 }
24 else
25 {
26 reportCompare(expect, actual, summary);
27 }
28
29 function boom()
30 {
31 var r = RegExp.prototype;
32 r["-1"] = 0;
33 Array.prototype.__proto__ = r;
34 []["-1"];
35
36 reportCompare(expect, actual, summary);
37
38 gDelayTestDriverEnd = false;
39 jsTestDriverEnd();
40 }
41
42