| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9b9d300 commit 6aec5ae
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -28,6 +28,7 @@ const { | |||
| 28 | 28 | ArrayPrototypeSlice, | |
| 29 | 29 | ArrayPrototypeSplice, | |
| 30 | 30 | ArrayPrototypeUnshift, | |
| 31 | + AsyncIteratorPrototype, | ||
| 31 | 32 | Boolean, | |
| 32 | 33 | Error, | |
| 33 | 34 | ErrorCaptureStackTrace, | |
@@ -1011,9 +1012,6 @@ async function once(emitter, name, options = kEmptyObject) { | |||
| 1011 | 1012 | }); | |
| 1012 | 1013 | } | |
| 1013 | 1014 | ||
| 1014 | - const AsyncIteratorPrototype = ObjectGetPrototypeOf( | ||
| 1015 | - ObjectGetPrototypeOf(async function* () {}).prototype); | ||
| 1016 | - | ||
| 1017 | 1015 | function createIterResult(value, done) { | |
| 1018 | 1016 | return { value, done }; | |
| 1019 | 1017 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -31,6 +31,7 @@ const { | |||
| 31 | 31 | ArrayPrototype, | |
| 32 | 32 | ArrayPrototypeForEach, | |
| 33 | 33 | ArrayPrototypePush, | |
| 34 | + AsyncIteratorPrototype, | ||
| 34 | 35 | Atomics, | |
| 35 | 36 | BigInt, | |
| 36 | 37 | BigInt64Array, | |
@@ -212,10 +213,7 @@ module.exports = function() { | |||
| 212 | 213 | // 27 Control Abstraction Objects | |
| 213 | 214 | // 27.1 Iteration | |
| 214 | 215 | IteratorPrototype, // 27.1.2 IteratorPrototype | |
| 215 | - // 27.1.3 AsyncIteratorPrototype | ||
| 216 | - ObjectGetPrototypeOf(ObjectGetPrototypeOf(ObjectGetPrototypeOf( | ||
| 217 | - (async function*() {})(), | ||
| 218 | - ))), | ||
| 216 | + AsyncIteratorPrototype, // 27.1.3 AsyncIteratorPrototype | ||
| 219 | 217 | PromisePrototype, // 27.2 | |
| 220 | 218 | ||
| 221 | 219 | // Other APIs / Web Compatibility | |
| Back | FazBrowse Home | New Git URL |
0 commit comments