Debian Codegraph @

rhino/testsrc/tests/e4x/extensions/regress-305335.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 gTestfile = 'regress-305335.js';
7
8 var summary = "Regression - XML instance methods should type check in " +
9 "JS_GetPrivate()";
10 var BUGNUMBER = 305335;
11 var actual = 'No Crash';
12 var expect = 'No Crash';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 var o = new Number(0);
18 o.__proto__ = XML();
19
20 try
21 {
22 o.parent();
23 }
24 catch(e)
25 {
26 printStatus('Exception: ' + e);
27 }
28
29 TEST(1, expect, actual);
30 END();