Skip to content

Commit 908292c

Browse files
targosdanbev
authored andcommittedApr 12, 2019
lib: enforce the use of Object from primordials
PR-URL: nodejs#27146 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gus Caplan <[email protected]>
1 parent 9ad5106 commit 908292c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+167
-64
lines changed
 

‎lib/.eslintrc.yaml

+2
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:

‎lib/_http_agent.js

+2
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');

0 commit comments

Comments
 (0)
Please sign in to comment.