Debian Codegraph @

rhino/testsrc/tests/e4x/extensions/regress-354151-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-354151-02.js';
8
9 var BUGNUMBER = 354151;
10 var summary = 'Bad assumptions about Array elements';
11 var actual = 'No Crash';
12 var expect = 'No Crash';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 var xml = <tag xmlns:n="uri:1" xmlns:n2="uri:2" n:a="1" n2:a="1"/>;
18
19 function getter() { }
20
21 function setter(v)
22 {
23 delete xml.@*::a;
24 xml.removeNamespace("uri:2");
25 gc();
26 }
27
28 Array.prototype.__defineGetter__(0, getter);
29 Array.prototype.__defineSetter__(0, setter);
30
31 xml.namespaceDeclarations();
32
33 delete Array.prototype[0];
34
35 TEST(1, expect, actual);
36
37 END();