Debian Codegraph @

js/src/tests/test262/language/statements/try/optional-catch-binding-parens.js

raw
1 // |reftest| error:SyntaxError
2 // Copyright (C) 2017 Lucas Azzola. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 author: Lucas Azzola
7 esid: pending
8 description: >
9 It is a SyntaxError to have a try/catch statement with an empty CatchParameter
10 features: [optional-catch-binding]
11 info: |
12 Catch[Yield, Await, Return]:
13 catch ( CatchParameter[?Yield, ?Await] ) Block[?Yield, ?Await, ?Return]
14 negative:
15 phase: parse
16 type: SyntaxError
17 ---*/
18
19 $DONOTEVALUATE();
20
21 try {} catch () {}
22