arrowparameters-bindingidentifier-identifier.js (518B)
1 // |reftest| error:SyntaxError 2 // Copyright (C) 2015 the V8 project authors. All rights reserved. 3 // This code is governed by the BSD license found in the LICENSE file. 4 /*--- 5 es6id: 14.2 6 description: > 7 ArrowParameters[Yield] : 8 BindingIdentifier[?Yield] 9 10 (12.1) 11 BindingIdentifier[Yield] : 12 Identifier[~Yield] yield 13 14 Identifier : 15 IdentifierName but not ReservedWord 16 17 ReservedWord : Keyword 18 19 negative: 20 phase: parse 21 type: SyntaxError 22 ---*/ 23 24 $DONOTEVALUATE(); 25 var af = switch => 1;