catch-parameter-boundnames-restriction-arguments-negative-early.js 470 B

12345678910111213141516
  1. // Copyright (c) 2017 the V8 project authors. All rights reserved.
  2. // This code is governed by the BSD license found in the LICENSE file.
  3. /*---
  4. esid: sec-strict-mode-of-ecmascript
  5. description: >
  6. It is a SyntaxError if a CatchParameter occurs within strict mode code and BoundNames of CatchParameter contains either eval or arguments (13.15.1).
  7. negative:
  8. phase: parse
  9. type: SyntaxError
  10. flags: [onlyStrict]
  11. ---*/
  12. $DONOTEVALUATE();
  13. try { } catch (arguments) { }