mirror of
https://github.com/tc39/test262.git
synced 2025-07-05 21:24:40 +02:00
These tests are derived from the following files within the Google V8 project: test/mjsunit/es6/generators-parsing.js
17 lines
379 B
JavaScript
17 lines
379 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]
|
|
---*/
|
|
|
|
function* g() {
|
|
function h() {
|
|
yield = 1;
|
|
}
|
|
}
|