mirror of
https://github.com/tc39/test262.git
synced 2025-05-14 03:40:29 +02:00
- in-statement-position-label-statement.js is an Annex-B test (B.3.2 Labelled Function Declarations), moved to annexB directory - identifier-let-allowed-as-lefthandside-expression-strict.js needs to check for a SyntaxError (ES6, 12.1.1) - Remove sort() calls in test/built-ins/Object/getOwnPropertyNames/*.js - Remove sort() calls in test/language/block-scope/syntax/for-in/acquire-properties-from-*.js - verifyConfigurable() needs to called last in test/built-ins/Object/is/length.js - All productions within ClassBody are implicitly strict, update test/language/class/method-definition/yield-as-*.js accordingly - Remove unnecessary noStrict flag in test/language/class/method-definition/yield-as-generator-method-binding-identifier.js - Check own symbols are returned in property creation order from Object.getOwnPropertySymbols(): - test/language/computed-property-names/basics/symbol.js - test/language/computed-property-names/class/method/symbol.js - test/language/computed-property-names/class/static/method-symbol.js - test/language/computed-property-names/object/method/symbol.js - Fix copy-paste error in test/language/expressions/object/method-definition/yield-as-function-expression-binding-identifier.js
24 lines
511 B
JavaScript
24 lines
511 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` may be used as the binding identifier of a function expression
|
|
within generator bodies.
|
|
features: [generators]
|
|
es6id: 14.1
|
|
flags: [noStrict]
|
|
---*/
|
|
|
|
var result;
|
|
var obj = {
|
|
*g() {
|
|
(function yield() {});
|
|
}
|
|
};
|
|
|
|
result = obj.g().next();
|
|
|
|
assert.sameValue(result.value, undefined);
|
|
assert.sameValue(result.done, true);
|