GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: prefer AsyncIteratorPrototype primordial · nodejs/node@5b2363b

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • events.js
    • internal
      • freeze_intrinsics.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/events.js‎

Copy file name to clipboardExpand all lines: lib/events.js
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const {
2828
ArrayPrototypeSlice,
2929
ArrayPrototypeSplice,
3030
ArrayPrototypeUnshift,
31+
AsyncIteratorPrototype,
3132
Boolean,
3233
Error,
3334
ErrorCaptureStackTrace,
@@ -1000,9 +1001,6 @@ async function once(emitter, name, options = kEmptyObject) {
10001001
});
10011002
}
10021003

1003-
const AsyncIteratorPrototype = ObjectGetPrototypeOf(
1004-
ObjectGetPrototypeOf(async function* () {}).prototype);
1005-
10061004
function createIterResult(value, done) {
10071005
return { value, done };
10081006
}
Collapse file

‎lib/internal/freeze_intrinsics.js‎

Copy file name to clipboardExpand all lines: lib/internal/freeze_intrinsics.js
+2-4Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const {
3131
ArrayPrototype,
3232
ArrayPrototypeForEach,
3333
ArrayPrototypePush,
34+
AsyncIteratorPrototype,
3435
Atomics,
3536
BigInt,
3637
BigInt64Array,
@@ -212,10 +213,7 @@ module.exports = function() {
212213
// 27 Control Abstraction Objects
213214
// 27.1 Iteration
214215
IteratorPrototype, // 27.1.2 IteratorPrototype
215-
// 27.1.3 AsyncIteratorPrototype
216-
ObjectGetPrototypeOf(ObjectGetPrototypeOf(ObjectGetPrototypeOf(
217-
(async function*() {})(),
218-
))),
216+
AsyncIteratorPrototype, // 27.1.3 AsyncIteratorPrototype
219217
PromisePrototype, // 27.2
220218

221219
// Other APIs / Web Compatibility

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.