Debian Codegraph @

rhino/testsrc/tests/ecma_2/Exceptions/exception-011-n.js

raw symbols SCIP
1 /* -*- Mode: C++; 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 = 'exception-011-n.js';
8
9 var SECTION = "exception-011";
10 var VERSION = "ECMA_2";
11 startTest();
12 var TITLE = "Don't Crash throwing undefined";
13
14 writeHeaderToLog( SECTION + " "+ TITLE);
15
16 print("Undefined throw test.");
17
18 DESCRIPTION = "throw undefined";
19 EXPECTED = "error";
20
21 new TestCase( SECTION, "throw undefined", "error", eval("throw (void 0)") );
22
23 test();
24
25 print("FAILED!: Should have exited with uncaught exception.");
26
27
28