Debian Codegraph @

rhino/testsrc/tests/js1_5/Regress/regress-317476.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 var gTestfile = 'regress-317476.js';
7 //-----------------------------------------------------------------------------
8 var BUGNUMBER = 317476;
9 var summary = 'The error thrown by JS_ReportError should be catchable';
10 var actual = 'no error';
11 var expect = 'no error';
12
13 printBugNumber(BUGNUMBER);
14 printStatus (summary);
15
16 if (typeof setTimeout != 'undefined')
17 {
18 expect = 'error';
19 try
20 {
21 setTimeout(2);
22 }
23 catch(ex)
24 {
25 actual = 'error';
26 printStatus(ex+'');
27 }
28 }
29
30
31
32 reportCompare(expect, actual, summary);