summaryrefslogtreecommitdiff
path: root/ext/web/06_streams.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2023-01-15 13:26:05 +0900
committerGitHub <noreply@github.com>2023-01-15 04:26:05 +0000
commit1dc3609ff22e6a7be4d86d2ba983f81dfd8c1fd4 (patch)
tree7521bbcca4298a492480dd291e91a5e06cd9c4a0 /ext/web/06_streams.js
parentd5634164cb86771fc279468cbb93e311c1ad3089 (diff)
fix(core): Add `Generator` and `AsyncGenerator` to promordials (#17241)
Diffstat (limited to 'ext/web/06_streams.js')
-rw-r--r--ext/web/06_streams.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/web/06_streams.js b/ext/web/06_streams.js
index 22baa1234..5b1c0141d 100644
--- a/ext/web/06_streams.js
+++ b/ext/web/06_streams.js
@@ -19,6 +19,7 @@
ArrayPrototypeMap,
ArrayPrototypePush,
ArrayPrototypeShift,
+ AsyncGeneratorPrototype,
BigInt64ArrayPrototype,
BigUint64ArrayPrototype,
DataView,
@@ -4439,9 +4440,7 @@
}
/** @type {AsyncIterator<unknown, unknown>} */
- const asyncIteratorPrototype = ObjectGetPrototypeOf(
- ObjectGetPrototypeOf(async function* () {}).prototype,
- );
+ const asyncIteratorPrototype = ObjectGetPrototypeOf(AsyncGeneratorPrototype);
const _iteratorNext = Symbol("[[iteratorNext]]");
const _iteratorFinished = Symbol("[[iteratorFinished]]");