test262/test/language/expressions/arrow-function/syntax/early-errors/arrowparameters-cover-no-yi...

16 lines
380 B
JavaScript
Raw Normal View History

2015-04-13 20:35:06 +02:00
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 14.2.1
description: >
ArrowParameters[Yield] :
...
CoverParenthesizedExpressionAndArrowParameterList[?Yield]
No parameter named "yield"
negative: SyntaxError
flags: [onlyStrict]
---*/
var af = (yield) => 1;