Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions lib/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const {
ArrayPrototypeSlice,
ArrayPrototypeSplice,
ArrayPrototypeUnshift,
AsyncIteratorPrototype,
Boolean,
Error,
ErrorCaptureStackTrace,
Expand Down Expand Up @@ -1000,9 +1001,6 @@ async function once(emitter, name, options = kEmptyObject) {
});
}

const AsyncIteratorPrototype = ObjectGetPrototypeOf(
ObjectGetPrototypeOf(async function* () {}).prototype);

function createIterResult(value, done) {
return { value, done };
}
Expand Down
6 changes: 2 additions & 4 deletions lib/internal/freeze_intrinsics.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const {
ArrayPrototype,
ArrayPrototypeForEach,
ArrayPrototypePush,
AsyncIteratorPrototype,
Atomics,
BigInt,
BigInt64Array,
Expand Down Expand Up @@ -212,10 +213,7 @@ module.exports = function() {
// 27 Control Abstraction Objects
// 27.1 Iteration
IteratorPrototype, // 27.1.2 IteratorPrototype
// 27.1.3 AsyncIteratorPrototype
ObjectGetPrototypeOf(ObjectGetPrototypeOf(ObjectGetPrototypeOf(
(async function*() {})(),
))),
AsyncIteratorPrototype, // 27.1.3 AsyncIteratorPrototype
PromisePrototype, // 27.2

// Other APIs / Web Compatibility
Expand Down
Loading