mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
* Add missing generators feature flags * Generate files * Add generators flags * fixup! Add generators flags
23 lines
512 B
JavaScript
23 lines
512 B
JavaScript
// Copyright (C) 2013 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
description: >
|
|
`yield` is not a reserved keyword within normal function bodies declared
|
|
within generator function bodies.
|
|
es6id: 12.1.1
|
|
flags: [noStrict]
|
|
features: [generators]
|
|
---*/
|
|
|
|
var result;
|
|
var g = function*() {
|
|
function h() {
|
|
yield = 1;
|
|
}
|
|
};
|
|
|
|
result = g().next();
|
|
assert.sameValue(result.value, undefined);
|
|
assert.sameValue(result.done, true);
|