| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0fb446e commit a9675a0
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -211,11 +211,12 @@ function createAsyncFromSyncIterator(syncIteratorRecord) { | |||
| 211 | 211 | return { iterator: asyncIterator, nextMethod, done: false }; | |
| 212 | 212 | } | |
| 213 | 213 | ||
| 214 | + // Refs: https://tc39.es/ecma262/#sec-getiterator | ||
| 214 | 215 | function getIterator(obj, kind = 'sync', method) { | |
| 215 | 216 | if (method === undefined) { | |
| 216 | 217 | if (kind === 'async') { | |
| 217 | 218 | method = obj[SymbolAsyncIterator]; | |
| 218 | - if (method === undefined) { | ||
| 219 | + if (method == null) { | ||
| 219 | 220 | const syncMethod = obj[SymbolIterator]; | |
| 220 | 221 | ||
| 221 | 222 | if (syncMethod === undefined) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,13 +16,6 @@ | |||
| 16 | 16 | "readable-streams/cross-realm-crash.window.js": { | |
| 17 | 17 | "skip": "Browser-specific test" | |
| 18 | 18 | }, | |
| 19 | - "readable-streams/from.any.js": { | ||
| 20 | - "fail": { | ||
| 21 | - "expected": [ | ||
| 22 | - "ReadableStream.from ignores a null @@asyncIterator" | ||
| 23 | - ] | ||
| 24 | - } | ||
| 25 | - }, | ||
| 26 | 19 | "readable-streams/owning-type-message-port.any.js": { | |
| 27 | 20 | "fail": { | |
| 28 | 21 | "note": "Readable streams with type owning are not yet supported", | |
| Back | FazBrowse Home | New Git URL |
0 commit comments