Debian Codegraph @

js/src/tests/non262/extensions/regress-443569.js

raw
1 // |reftest| skip-if(xulRuntime.shell)
2 /* -*- indent-tabs-mode: nil; js-indent-level: 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 //-----------------------------------------------------------------------------
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 // delay test driver end
18 gDelayTestDriverEnd = true;
19
20 window.addEventListener("load", boom, false);
21
22 function boom()
23 {
24 var r = RegExp.prototype;
25 r["-1"] = 0;
26 Array.prototype.__proto__ = r;
27 []["-1"];
28
29 reportCompare(expect, actual, summary);
30
31 gDelayTestDriverEnd = false;
32 jsTestDriverEnd();
33 }
34
35