| 1 |
// Copyright (C) 2013 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 |
`yield` is a reserved keyword within generator function bodies and may |
| 7 |
not be used as the binding identifier of a parameter. |
| 8 |
features: [generators] |
| 9 |
es6id: 12.1.1 |
| 10 |
negative: |
| 11 |
phase: parse |
| 12 |
type: SyntaxError |
| 13 |
---*/ |
| 14 |
|
| 15 |
throw "Test262: This statement should not be evaluated."; |
| 16 |
|
| 17 |
var obj = { |
| 18 |
*g(yield) {} |
| 19 |
}; |