arrowparameters-bindingidentifier-no-yield-strict.js (434B)
1 // |reftest| error:SyntaxError 2 'use strict'; 3 // Copyright (C) 2015 the V8 project authors. All rights reserved. 4 // This code is governed by the BSD license found in the LICENSE file. 5 /*--- 6 es6id: 14.2.1 7 description: > 8 ArrowParameters[Yield] : 9 BindingIdentifier[?Yield] 10 ... 11 12 13 No parameter named "yield" 14 15 negative: 16 phase: parse 17 type: SyntaxError 18 flags: [onlyStrict] 19 ---*/ 20 21 $DONOTEVALUATE(); 22 var af = yield => 1;