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