keith_miller@apple.com | bcc77f2 | 2016-07-15 06:03:25 +0000 | [diff] [blame] | 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` expressions bind weakly | ||||
7 | features: [generators] | ||||
8 | es6id: 14.4 | ||||
9 | negative: SyntaxError | ||||
10 | ---*/ | ||||
11 | |||||
12 | class A { | ||||
13 | *g() { yield 3 + yield 4; } | ||||
14 | } |