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: enforce the use of Object from primordials · styfle/node@908292c

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib
    • .eslintrc.yaml
    • _http_agent.js
    • _http_client.js
    • _http_incoming.js
    • _http_outgoing.js
    • _http_server.js
    • _stream_duplex.js
    • _stream_passthrough.js
    • _stream_readable.js
    • _stream_transform.js
    • _stream_writable.js
    • _tls_common.js
    • _tls_wrap.js
    • assert.js
    • buffer.js
    • child_process.js
    • constants.js
    • crypto.js
    • dgram.js
    • dns.js
    • domain.js
    • events.js
    • fs.js
    • http.js
    • https.js
    • internal
      • assert
        • assertion_error.js
      • async_hooks.js
      • bootstrap
        • pre_execution.js
      • child_process.js
      • cluster
        • child.js
        • master.js
        • worker.js
      • console
        • constructor.js
        • global.js
      • crypto
        • cipher.js
        • diffiehellman.js
        • hash.js
        • keygen.js
        • keys.js
        • sig.js
      • dns
        • promises.js
      • encoding.js
      • errors.js
      • fs
        • streams.js
        • sync_write_stream.js
        • watchers.js
      • http2
        • compat.js
        • core.js
        • util.js
      • main
        • worker_thread.js
      • modules
        • cjs
          • helpers.js
          • loader.js
        • esm
          • module_job.js
      • per_context
        • domexception.js
      • process
        • per_thread.js
        • policy.js
      • repl.js
      • repl
        • await.js
      • streams
        • async_iterator.js
        • lazy_transform.js
        • legacy.js
      • timers.js
      • tls.js
      • trace_events_async_hooks.js
      • url.js
      • util.js
      • util
        • inspector.js
        • types.js
      • vm
        • source_text_module.js
      • worker.js
      • worker
        • io.js
    • net.js
    • os.js
    • perf_hooks.js
    • querystring.js
    • readline.js
    • repl.js
    • stream.js
    • string_decoder.js
    • tty.js
    • url.js
    • util.js
    • v8.js
    • zlib.js
  • src
    • node.cc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/.eslintrc.yaml‎

Copy file name to clipboardExpand all lines: lib/.eslintrc.yaml
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ rules:
1010
message: "Use `const { JSON } = primordials;` instead of the global."
1111
- name: Math
1212
message: "Use `const { Math } = primordials;` instead of the global."
13+
- name: Object
14+
message: "Use `const { Object } = primordials;` instead of the global."
1315
- name: Reflect
1416
message: "Use `const { Reflect } = primordials;` instead of the global."
1517
no-restricted-syntax:
Collapse file

‎lib/_http_agent.js‎

Copy file name to clipboardExpand all lines: lib/_http_agent.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
'use strict';
2323

24+
const { Object } = primordials;
25+
2426
const net = require('net');
2527
const EventEmitter = require('events');
2628
const debug = require('internal/util/debuglog').debuglog('http');
Collapse file

‎lib/_http_client.js‎

Copy file name to clipboardExpand all lines: lib/_http_client.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
'use strict';
2323

24+
const { Object } = primordials;
25+
2426
const net = require('net');
2527
const url = require('url');
2628
const assert = require('internal/assert');
Collapse file

‎lib/_http_incoming.js‎

Copy file name to clipboardExpand all lines: lib/_http_incoming.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
'use strict';
2323

24+
const { Object } = primordials;
25+
2426
const Stream = require('stream');
2527

2628
function readStart(socket) {
Collapse file

‎lib/_http_outgoing.js‎

Copy file name to clipboardExpand all lines: lib/_http_outgoing.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
'use strict';
2323

24-
const { ObjectPrototype } = primordials;
24+
const { Object, ObjectPrototype } = primordials;
2525

2626
const assert = require('internal/assert');
2727
const Stream = require('stream');
Collapse file

‎lib/_http_server.js‎

Copy file name to clipboardExpand all lines: lib/_http_server.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
'use strict';
2323

24+
const { Object } = primordials;
25+
2426
const net = require('net');
2527
const assert = require('internal/assert');
2628
const {
Collapse file

‎lib/_stream_duplex.js‎

Copy file name to clipboardExpand all lines: lib/_stream_duplex.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626

2727
'use strict';
2828

29+
const { Object } = primordials;
30+
2931
module.exports = Duplex;
3032

3133
const Readable = require('_stream_readable');
Collapse file

‎lib/_stream_passthrough.js‎

Copy file name to clipboardExpand all lines: lib/_stream_passthrough.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
'use strict';
2727

28+
const { Object } = primordials;
29+
2830
module.exports = PassThrough;
2931

3032
const Transform = require('_stream_transform');
Collapse file

‎lib/_stream_readable.js‎

Copy file name to clipboardExpand all lines: lib/_stream_readable.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
'use strict';
2323

24+
const { Object } = primordials;
25+
2426
module.exports = Readable;
2527
Readable.ReadableState = ReadableState;
2628

Collapse file

‎lib/_stream_transform.js‎

Copy file name to clipboardExpand all lines: lib/_stream_transform.js
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@
6363

6464
'use strict';
6565

66+
const { Object } = primordials;
67+
6668
module.exports = Transform;
6769
const {
6870
ERR_METHOD_NOT_IMPLEMENTED,

0 commit comments

Comments
0 (0)
You are visitor 01402792 — 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.