tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

optional-catch-binding-parens.js (538B)


      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 () {}