You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it's not possible to yield non-objects such as primitives etc due to the use of in in the runtime. May be necessary to just use Object.prototype.hasOwnProperty.
For example the following taken from compat-table wont work:
Hmm, but String.prototype is where the Symbol.iterator property lives, so Object.prototype.hasOwnProperty("asdf", Symbol.iterator) will be false. And that's true for most iterable objects.
It might work to fall through to the case that uses .length to synthesize an iterator object, but I'd really prefer to use iterable[Symbol.iterator]() when it's available.
Perhaps we can just test that iterable[Symbol.iterator] !== undefined.
Currently it's not possible to yield non-objects such as primitives etc due to the use of
in
in the runtime. May be necessary to just useObject.prototype.hasOwnProperty
.For example the following taken from compat-table wont work:
The text was updated successfully, but these errors were encountered: