mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Add missing Symbol.iterator feature flags
This commit is contained in:
parent
9f526c0bcd
commit
2bee5df77a
@ -5,6 +5,7 @@
|
|||||||
description: Source object has iterator which throws
|
description: Source object has iterator which throws
|
||||||
esid: sec-array.from
|
esid: sec-array.from
|
||||||
es6id: 22.1.2.1
|
es6id: 22.1.2.1
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = [ 2, 4, 8, 16, 32, 64, 128 ];
|
var array = [ 2, 4, 8, 16, 32, 64, 128 ];
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
description: Source object has iterator
|
description: Source object has iterator
|
||||||
esid: sec-array.from
|
esid: sec-array.from
|
||||||
es6id: 22.1.2.1
|
es6id: 22.1.2.1
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = [ 2, 4, 8, 16, 32, 64, 128 ];
|
var array = [ 2, 4, 8, 16, 32, 64, 128 ];
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
description: >
|
description: >
|
||||||
The @@toStringTag attribute should be defined directly on the prototype.
|
The @@toStringTag attribute should be defined directly on the prototype.
|
||||||
es6id: 22.1.5.2.2
|
es6id: 22.1.5.2.2
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
`Object.prototype.toString` should honor the value of the @@toStringTag
|
`Object.prototype.toString` should honor the value of the @@toStringTag
|
||||||
attribute.
|
attribute.
|
||||||
es6id: 22.1.5.2.2
|
es6id: 22.1.5.2.2
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iter = [][Symbol.iterator]();
|
var iter = [][Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Float32Array([3, 1, 2]);
|
var array = new Float32Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Float64Array([3, 1, 2]);
|
var array = new Float64Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Int16Array([3, 1, 2]);
|
var array = new Int16Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Int32Array([3, 1, 2]);
|
var array = new Int32Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Int8Array([3, 1, 2]);
|
var array = new Int8Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Uint16Array([3, 1, 2]);
|
var array = new Uint16Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Uint32Array([3, 1, 2]);
|
var array = new Uint32Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Uint8Array([3, 1, 2]);
|
var array = new Uint8Array([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -6,7 +6,7 @@ esid: sec-%arrayiteratorprototype%.next
|
|||||||
description: >
|
description: >
|
||||||
Visits each element of the array in order and ceases iteration once all
|
Visits each element of the array in order and ceases iteration once all
|
||||||
values have been visited.
|
values have been visited.
|
||||||
features: [TypedArray]
|
features: [Symbol.iterator, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
var array = new Uint8ClampedArray([3, 1, 2]);
|
var array = new Uint8ClampedArray([3, 1, 2]);
|
||||||
var iterator = array[Symbol.iterator]();
|
var iterator = array[Symbol.iterator]();
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Once exhausted, iterators for mapped arguments exotic objects should not
|
Once exhausted, iterators for mapped arguments exotic objects should not
|
||||||
emit new values added to the object.
|
emit new values added to the object.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Prior to being exhausted, iterators for mapped arguments exotic objects
|
Prior to being exhausted, iterators for mapped arguments exotic objects
|
||||||
should honor the insertion of additional argument values.
|
should honor the insertion of additional argument values.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Mapped arguments exotic objects should implement the Array iterator
|
Mapped arguments exotic objects should implement the Array iterator
|
||||||
protocol.
|
protocol.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Prior to being exhausted, iterators for mapped arguments exotic objects
|
Prior to being exhausted, iterators for mapped arguments exotic objects
|
||||||
should honor argument removal.
|
should honor argument removal.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Once exhausted, iterators for unmapped arguments exotic objects should not
|
Once exhausted, iterators for unmapped arguments exotic objects should not
|
||||||
emit new values added to the object.
|
emit new values added to the object.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Prior to being exhausted, iterators for unmapped arguments exotic objects
|
Prior to being exhausted, iterators for unmapped arguments exotic objects
|
||||||
should honor the insertion of additional argument values.
|
should honor the insertion of additional argument values.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Unmapped arguments exotic objects should implement the Array iterator
|
Unmapped arguments exotic objects should implement the Array iterator
|
||||||
protocol.
|
protocol.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -7,6 +7,7 @@ description: >
|
|||||||
Prior to being exhausted, iterators for unmapped arguments exotic objects
|
Prior to being exhausted, iterators for unmapped arguments exotic objects
|
||||||
should honor argument removal.
|
should honor argument removal.
|
||||||
flags: [noStrict]
|
flags: [noStrict]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
(function(a, b, c) {
|
(function(a, b, c) {
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
after the iterator is "done", the new item should not be accessible via
|
after the iterator is "done", the new item should not be accessible via
|
||||||
iteration.
|
iteration.
|
||||||
es6id: 22.1.3.30
|
es6id: 22.1.3.30
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = [];
|
var array = [];
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
The method should return a valid iterator with the context as the
|
The method should return a valid iterator with the context as the
|
||||||
IteratedObject.
|
IteratedObject.
|
||||||
es6id: 22.1.3.30
|
es6id: 22.1.3.30
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = ['a', 'b', 'c'];
|
var array = ['a', 'b', 'c'];
|
||||||
|
@ -21,6 +21,7 @@ info: >
|
|||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
||||||
|
@ -18,6 +18,7 @@ info: >
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
Iterator Instance (22.1.5.3), throw a TypeError exception.
|
Iterator Instance (22.1.5.3), throw a TypeError exception.
|
||||||
es6id: 22.1.5.2.1
|
es6id: 22.1.5.2.1
|
||||||
esid: sec-%arrayiteratorprototype%.next
|
esid: sec-%arrayiteratorprototype%.next
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = [0];
|
var array = [0];
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
writable and configurable, but not enumerable.
|
writable and configurable, but not enumerable.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
es6id: 17
|
es6id: 17
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
var ArrayIteratorProto = Object.getPrototypeOf([][Symbol.iterator]());
|
||||||
|
@ -17,6 +17,7 @@ description: >
|
|||||||
f. Let status be Call(adder, set, «nextValue.[[value]]»).
|
f. Let status be Call(adder, set, «nextValue.[[value]]»).
|
||||||
g. If status is an abrupt completion, return IteratorClose(iter, status).
|
g. If status is an abrupt completion, return IteratorClose(iter, status).
|
||||||
|
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
@ -11,6 +11,7 @@ description: >
|
|||||||
9. Repeat
|
9. Repeat
|
||||||
a. Let next be IteratorStep(iter).
|
a. Let next be IteratorStep(iter).
|
||||||
b. ReturnIfAbrupt(next).
|
b. ReturnIfAbrupt(next).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterable = {};
|
var iterable = {};
|
||||||
|
@ -12,6 +12,7 @@ description: >
|
|||||||
...
|
...
|
||||||
d. Let nextValue be IteratorValue(next).
|
d. Let nextValue be IteratorValue(next).
|
||||||
e. ReturnIfAbrupt(nextValue).
|
e. ReturnIfAbrupt(nextValue).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
@ -5,6 +5,7 @@ es6id: 21.1.5.2
|
|||||||
description: >
|
description: >
|
||||||
The [[Prototype]] internal slot ofthe %StringIteratorPrototype% is the
|
The [[Prototype]] internal slot ofthe %StringIteratorPrototype% is the
|
||||||
%IteratorPrototype% intrinsic object (25.1.2).
|
%IteratorPrototype% intrinsic object (25.1.2).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]());
|
var strItrProto = Object.getPrototypeOf(''[Symbol.iterator]());
|
||||||
|
@ -17,6 +17,7 @@ info: >
|
|||||||
object, if it exists, has the attributes { [[Writable]]: false,
|
object, if it exists, has the attributes { [[Writable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Enumerable]]: false, [[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]());
|
var StringIteratorProto = Object.getPrototypeOf(new String()[Symbol.iterator]());
|
||||||
|
@ -5,6 +5,7 @@ es6id: 21.1.5.2.1
|
|||||||
description: >
|
description: >
|
||||||
Iteration should respect UTF-16-encoded Unicode code points specified via
|
Iteration should respect UTF-16-encoded Unicode code points specified via
|
||||||
surrogate pairs.
|
surrogate pairs.
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var lo = '\uD834';
|
var lo = '\uD834';
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
es6id: 21.1.5.2.1
|
es6id: 21.1.5.2.1
|
||||||
description: >
|
description: >
|
||||||
Iteration should visit each UTF-8 code point exactly once.
|
Iteration should visit each UTF-8 code point exactly once.
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var string = "abc";
|
var string = "abc";
|
||||||
|
@ -5,6 +5,7 @@ es6id: 21.1.5.2.1 S 3
|
|||||||
description: >
|
description: >
|
||||||
If the `this` value does not have all of the internal slots of an String
|
If the `this` value does not have all of the internal slots of an String
|
||||||
Iterator Instance (21.1.5.3), throw a `TypeError` exception.
|
Iterator Instance (21.1.5.3), throw a `TypeError` exception.
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterator = ''[Symbol.iterator]();
|
var iterator = ''[Symbol.iterator]();
|
||||||
|
@ -12,7 +12,7 @@ info: >
|
|||||||
3. Assert: GlobalSymbolRegistry does not currently contain an entry for
|
3. Assert: GlobalSymbolRegistry does not currently contain an entry for
|
||||||
sym.
|
sym.
|
||||||
4. Return undefined.
|
4. Return undefined.
|
||||||
features: [Symbol]
|
features: [Symbol.iterator, Symbol]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var constructed = Symbol('Symbol.iterator');
|
var constructed = Symbol('Symbol.iterator');
|
||||||
|
@ -12,6 +12,7 @@ info: >
|
|||||||
9. Repeat
|
9. Repeat
|
||||||
k. Let status be Call(adder, map, «k.[[value]], v.[[value]]»).
|
k. Let status be Call(adder, map, «k.[[value]], v.[[value]]»).
|
||||||
l. If status is an abrupt completion, return IteratorClose(iter, status).
|
l. If status is an abrupt completion, return IteratorClose(iter, status).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
@ -13,6 +13,7 @@ info: >
|
|||||||
a. Let next be IteratorStep(iter).
|
a. Let next be IteratorStep(iter).
|
||||||
b. ReturnIfAbrupt(next).
|
b. ReturnIfAbrupt(next).
|
||||||
...
|
...
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterable = {};
|
var iterable = {};
|
||||||
|
@ -14,6 +14,7 @@ info: >
|
|||||||
d. Let nextItem be IteratorValue(next).
|
d. Let nextItem be IteratorValue(next).
|
||||||
e. ReturnIfAbrupt(nextItem).
|
e. ReturnIfAbrupt(nextItem).
|
||||||
...
|
...
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterable = {};
|
var iterable = {};
|
||||||
|
@ -12,6 +12,7 @@ info: >
|
|||||||
9. Repeat
|
9. Repeat
|
||||||
f. Let status be Call(adder, set, «nextValue»).
|
f. Let status be Call(adder, set, «nextValue»).
|
||||||
g. If status is an abrupt completion, return IteratorClose(iter, status).
|
g. If status is an abrupt completion, return IteratorClose(iter, status).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
@ -13,6 +13,7 @@ info: >
|
|||||||
a. Let next be IteratorStep(iter).
|
a. Let next be IteratorStep(iter).
|
||||||
b. ReturnIfAbrupt(next).
|
b. ReturnIfAbrupt(next).
|
||||||
...
|
...
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var iterable = {};
|
var iterable = {};
|
||||||
|
@ -13,6 +13,7 @@ info: >
|
|||||||
...
|
...
|
||||||
d. Let nextValue be IteratorValue(next).
|
d. Let nextValue be IteratorValue(next).
|
||||||
e. ReturnIfAbrupt(nextValue).
|
e. ReturnIfAbrupt(nextValue).
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var count = 0;
|
var count = 0;
|
||||||
|
@ -5,6 +5,7 @@ es6id: 25.2
|
|||||||
description: >
|
description: >
|
||||||
When an iterator is the operand of a `yield *` expression, the generator
|
When an iterator is the operand of a `yield *` expression, the generator
|
||||||
should produce an iterator that visits each iterated item.
|
should produce an iterator that visits each iterated item.
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var results = [{ value: 1 }, { value: 8 }, { value: 34, done: true }];
|
var results = [{ value: 1 }, { value: 8 }, { value: 34, done: true }];
|
||||||
|
@ -6,7 +6,7 @@ description: >
|
|||||||
The [[DefineOwnProperty]] internal method returns `true` if no change is
|
The [[DefineOwnProperty]] internal method returns `true` if no change is
|
||||||
requested, and `false` otherwise.
|
requested, and `false` otherwise.
|
||||||
flags: [module]
|
flags: [module]
|
||||||
features: [Reflect, Symbol, Symbol.toStringTag]
|
features: [Symbol.iterator, Reflect, Symbol, Symbol.toStringTag]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
import * as ns from './define-own-property.js';
|
import * as ns from './define-own-property.js';
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
The method should return a valid iterator that can be traversed using a
|
The method should return a valid iterator that can be traversed using a
|
||||||
`for...of` loop.
|
`for...of` loop.
|
||||||
es6id: 22.1.3.30
|
es6id: 22.1.3.30
|
||||||
|
features: [Symbol.iterator]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];
|
var array = [0, 'a', true, false, null, /* hole */, undefined, NaN];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user