js/src/tests/js1_5/Exceptions/regress-350650-n.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0469cffd7dae
1 // |reftest| skip-if(Android)
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 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 = 350650;
9 var summary = 'js reports "uncaught exception';
10 var actual = 'Error';
11 var expect = 'Error';
12
13 expectExitCode(3);
14
15 //-----------------------------------------------------------------------------
16 test();
17 //-----------------------------------------------------------------------------
18
19 function test()
20 {
21 enterFunc ('test');
22 printBugNumber(BUGNUMBER);
23 printStatus (summary);
24
25 function exc() { this.toString = function() { return "EXC"; } }
26 throw new exc();
27
28 reportCompare(expect, actual, summary);
29
30 exitFunc ('test');
31 }

mercurial