mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 16:04:36 +02:00
Other cases of yield * with iterable values
This commit is contained in:
parent
dacc69a066
commit
0cc5e356c1
@ -60,22 +60,22 @@ features: [class-static-methods-private]
|
|||||||
|
|
||||||
//- fields
|
//- fields
|
||||||
static async * #$(value) {
|
static async * #$(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
static async * #_(value) {
|
static async * #_(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
static async * #o(value) {
|
static async * #o(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
static async * #℘(value) {
|
static async * #℘(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
static async * #ZW__NJ(value) {
|
static async * #ZW__NJ(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
static async * #ZW__J(value) {
|
static async * #ZW__J(value) {
|
||||||
yield await value;
|
yield * await value;
|
||||||
}
|
}
|
||||||
//- privateinspectionfunctions
|
//- privateinspectionfunctions
|
||||||
static get $() {
|
static get $() {
|
||||||
@ -99,12 +99,12 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
|
|||||||
|
|
||||||
//- assertions
|
//- assertions
|
||||||
Promise.all([
|
Promise.all([
|
||||||
C.$(1).next(),
|
C.$([1]).next(),
|
||||||
C._(1).next(),
|
C._([1]).next(),
|
||||||
C.o(1).next(),
|
C.o([1]).next(),
|
||||||
C.℘(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
C.℘([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||||
C.ZW__NJ(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
C.ZW__NJ([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||||
C.ZW__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
C.ZW__J([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||||
]).then(results => {
|
]).then(results => {
|
||||||
|
|
||||||
assert.sameValue(results[0].value, 1);
|
assert.sameValue(results[0].value, 1);
|
||||||
|
@ -97,9 +97,9 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
|
|||||||
}
|
}
|
||||||
|
|
||||||
//- assertions
|
//- assertions
|
||||||
assert.sameValue(C.$(1).next().value, 1);
|
assert.sameValue(C.$([1]).next().value, 1);
|
||||||
assert.sameValue(C._(1).next().value, 1);
|
assert.sameValue(C._([1]).next().value, 1);
|
||||||
assert.sameValue(C.o(1).next().value, 1);
|
assert.sameValue(C.o([1]).next().value, 1);
|
||||||
assert.sameValue(C.℘(1).next().value, 1);
|
assert.sameValue(C.℘([1]).next().value, 1);
|
||||||
assert.sameValue(C.ZW__NJ(1).next().value, 1);
|
assert.sameValue(C.ZW__NJ([1]).next().value, 1);
|
||||||
assert.sameValue(C.ZW__J(1).next().value, 1);
|
assert.sameValue(C.ZW__J([1]).next().value, 1);
|
||||||
|
@ -97,10 +97,10 @@ static get ZW_\u200D_J() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//- assertions
|
//- assertions
|
||||||
assert.sameValue(C.$(1).next().value, 1);
|
assert.sameValue(C.$([1]).next().value, 1);
|
||||||
assert.sameValue(C._(1).next().value, 1);
|
assert.sameValue(C._([1]).next().value, 1);
|
||||||
assert.sameValue(C.\u{6F}(1).next().value, 1);
|
assert.sameValue(C.\u{6F}([1]).next().value, 1);
|
||||||
assert.sameValue(C.\u2118(1).next().value, 1);
|
assert.sameValue(C.\u2118([1]).next().value, 1);
|
||||||
assert.sameValue(C.ZW_\u200C_NJ(1).next().value, 1);
|
assert.sameValue(C.ZW_\u200C_NJ([1]).next().value, 1);
|
||||||
assert.sameValue(C.ZW_\u200D_J(1).next().value, 1);
|
assert.sameValue(C.ZW_\u200D_J([1]).next().value, 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user