2015-03-17 18:50:15 +01:00
|
|
|
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
2017-10-04 22:12:34 +02:00
|
|
|
description: >
|
|
|
|
`yield` expressions bind weakly
|
|
|
|
es6id: 14.4
|
|
|
|
negative:
|
2017-12-03 06:06:42 +01:00
|
|
|
phase: parse
|
2017-10-04 22:12:34 +02:00
|
|
|
type: SyntaxError
|
|
|
|
features: [generators]
|
|
|
|
---*/
|
2015-03-17 18:50:15 +01:00
|
|
|
|
2018-10-11 16:59:24 +02:00
|
|
|
$DONOTEVALUATE();
|
2017-04-29 22:31:08 +02:00
|
|
|
|
2015-03-17 18:50:15 +01:00
|
|
|
function* g() { yield 3 + yield 4; }
|