Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0dd8605

Browse filesBrowse files
Sebastien-Ahkrintargos
authored andcommitted
lib: replace Map global by the primordials
PR-URL: #31155 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 02ed713 commit 0dd8605
Copy full SHA for 0dd8605

File tree

Expand file treeCollapse file tree

23 files changed

+28
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

23 files changed

+28
-1
lines changed
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
@@ -19,6 +19,8 @@ rules:
1919
message: "Use `const { Error } = primordials;` instead of the global."
2020
- name: JSON
2121
message: "Use `const { JSON } = primordials;` instead of the global."
22+
- name: Map
23+
message: "Use `const { Map } = primordials;` instead of the global."
2224
- name: Math
2325
message: "Use `const { Math } = primordials;` instead of the global."
2426
- name: Number
Collapse file

‎lib/assert.js‎

Copy file name to clipboardExpand all lines: lib/assert.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const {
2525
ObjectAssign,
2626
ObjectIs,
2727
ObjectKeys,
28+
Map,
2829
} = primordials;
2930

3031
const { Buffer } = require('buffer');
Collapse file

‎lib/domain.js‎

Copy file name to clipboardExpand all lines: lib/domain.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
const {
3030
Array,
3131
Error,
32+
Map,
3233
ObjectDefineProperty,
3334
ReflectApply,
3435
Symbol,
Collapse file

‎lib/fs.js‎

Copy file name to clipboardExpand all lines: lib/fs.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
'use strict';
2626

2727
const {
28+
Map,
2829
MathMax,
2930
NumberIsSafeInteger,
3031
ObjectCreate,
Collapse file

‎lib/inspector.js‎

Copy file name to clipboardExpand all lines: lib/inspector.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
const {
44
JSONParse,
55
JSONStringify,
6+
Map,
67
Symbol,
78
} = primordials;
89

Collapse file

‎lib/internal/bootstrap/loaders.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/loaders.js
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@
4545

4646
const {
4747
Error,
48-
ReflectGet,
48+
Map,
4949
ObjectCreate,
5050
ObjectDefineProperty,
5151
ObjectKeys,
5252
ObjectPrototypeHasOwnProperty,
53+
ReflectGet,
5354
SafeSet,
5455
} = primordials;
5556

Collapse file

‎lib/internal/bootstrap/pre_execution.js‎

Copy file name to clipboardExpand all lines: lib/internal/bootstrap/pre_execution.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const {
4+
Map,
45
ObjectDefineProperty,
56
SafeWeakMap,
67
} = primordials;
Collapse file

‎lib/internal/cluster/child.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/child.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const {
4+
Map,
45
ObjectAssign,
56
} = primordials;
67

Collapse file

‎lib/internal/cluster/master.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/master.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

33
const {
4+
Map,
45
ObjectKeys,
56
ObjectValues,
67
} = primordials;
Collapse file

‎lib/internal/cluster/round_robin_handle.js‎

Copy file name to clipboardExpand all lines: lib/internal/cluster/round_robin_handle.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
const {
44
Boolean,
5+
Map,
56
} = primordials;
67

78
const assert = require('internal/assert');

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.