Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-350206-1.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 gTestfile = 'regress-350206-1.js';
7
8 //-----------------------------------------------------------------------------
9 var BUGNUMBER = "350206";
10 var summary = "Order of destructuring, destructuring in the presence of " +
11 "exceptions";
12 var actual, expect;
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 /**************
18 * BEGIN TEST *
19 **************/
20
21 var failed = "No crash";
22
23 try
24 {
25 var t1 = <ns2:t1 xmlns:ns2="http://bar/ns2"/>;
26 var n2 = new Namespace("http://ns2");
27 t1.@n2::a1 = "a1 from ns2";
28
29 t1.toXMLString();
30 }
31 catch (ex)
32 {
33 failed = ex;
34 }
35
36 expect = "No crash";
37 actual = failed;
38
39 TEST(1, expect, actual);