| 1 |
// Copyright (C) 2015 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
description: > |
| 6 |
The BindingIdentifier of a SingleNameBinding witihn the FormalParameters of |
| 7 |
a GeneratorMethod may not be the `yield` keyword. |
| 8 |
es6id: 14.4 |
| 9 |
features: [generators] |
| 10 |
flags: [noStrict] |
| 11 |
negative: |
| 12 |
phase: parse |
| 13 |
type: SyntaxError |
| 14 |
---*/ |
| 15 |
|
| 16 |
throw "Test262: This statement should not be evaluated."; |
| 17 |
|
| 18 |
({ |
| 19 |
*method(yield) {} |
| 20 |
}); |