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:
|
|
|
|
phase: early
|
|
|
|
type: SyntaxError
|
|
|
|
features: [generators]
|
|
|
|
---*/
|
2015-03-17 18:50:15 +01:00
|
|
|
|
2017-04-29 22:31:08 +02:00
|
|
|
throw "Test262: This statement should not be evaluated.";
|
|
|
|
|
2015-03-17 18:50:15 +01:00
|
|
|
function* g() { yield 3 + yield 4; }
|