mirror of https://github.com/tc39/test262.git
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
|
||||
static async * #$(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
static async * #_(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
static async * #o(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
static async * #℘(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
static async * #ZW__NJ(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
static async * #ZW__J(value) {
|
||||
yield await value;
|
||||
yield * await value;
|
||||
}
|
||||
//- privateinspectionfunctions
|
||||
static get $() {
|
||||
|
@ -99,12 +99,12 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
|
|||
|
||||
//- assertions
|
||||
Promise.all([
|
||||
C.$(1).next(),
|
||||
C._(1).next(),
|
||||
C.o(1).next(),
|
||||
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__J(1).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
C.$([1]).next(),
|
||||
C._([1]).next(),
|
||||
C.o([1]).next(),
|
||||
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__J([1]).next(), // DO NOT CHANGE THE NAME OF THIS FIELD
|
||||
]).then(results => {
|
||||
|
||||
assert.sameValue(results[0].value, 1);
|
||||
|
|
|
@ -97,9 +97,9 @@ static get ZW__J() { // DO NOT CHANGE THE NAME OF THIS FIELD
|
|||
}
|
||||
|
||||
//- assertions
|
||||
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.℘(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.$([1]).next().value, 1);
|
||||
assert.sameValue(C._([1]).next().value, 1);
|
||||
assert.sameValue(C.o([1]).next().value, 1);
|
||||
assert.sameValue(C.℘([1]).next().value, 1);
|
||||
assert.sameValue(C.ZW__NJ([1]).next().value, 1);
|
||||
assert.sameValue(C.ZW__J([1]).next().value, 1);
|
||||
|
|
|
@ -97,10 +97,10 @@ static get ZW_\u200D_J() {
|
|||
}
|
||||
|
||||
//- assertions
|
||||
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.\u2118(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.$([1]).next().value, 1);
|
||||
assert.sameValue(C._([1]).next().value, 1);
|
||||
assert.sameValue(C.\u{6F}([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_\u200D_J([1]).next().value, 1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue