2015-05-19 23:51:59 +02:00
|
|
|
// Copyright (C) 2015 the V8 project authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
|
|
|
/*---
|
|
|
|
description: >
|
2015-05-26 20:52:21 +02:00
|
|
|
The Initializer of a SingleNameBinding witihn the FormalParameters of a
|
|
|
|
GeneratorMethod may not contain the `yield` keyword.
|
2015-05-19 23:51:59 +02:00
|
|
|
es6id: 14.4
|
|
|
|
features: [generators]
|
|
|
|
flags: [noStrict]
|
2016-01-31 00:57:28 +01:00
|
|
|
negative:
|
|
|
|
phase: early
|
|
|
|
type: SyntaxError
|
2015-05-19 23:51:59 +02:00
|
|
|
---*/
|
|
|
|
|
2015-05-26 20:52:21 +02:00
|
|
|
(function*() {
|
|
|
|
({
|
|
|
|
*method(x = yield) {}
|
|
|
|
});
|
|
|
|
});
|