diff options
author | Sebastien Ahkrin <sebastien48criquet@gmail.com> | 2020-01-02 16:43:02 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-01-05 01:56:52 +0300 |
commit | 9085c03806dbc9eb48e14c2afa49080deee0ee3c (patch) | |
tree | 2788eb76f15f24b52a8a7331bc68c401988c0d87 /lib/internal/cluster | |
parent | c9b93e234454322ac0b7a6cd29d394f428f3e37d (diff) |
lib: replace Map global by the primordials
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'lib/internal/cluster')
-rw-r--r-- | lib/internal/cluster/child.js | 1 | ||||
-rw-r--r-- | lib/internal/cluster/master.js | 1 | ||||
-rw-r--r-- | lib/internal/cluster/round_robin_handle.js | 1 | ||||
-rw-r--r-- | lib/internal/cluster/utils.js | 4 |
4 files changed, 7 insertions, 0 deletions
diff --git a/lib/internal/cluster/child.js b/lib/internal/cluster/child.js index ed5d7ce76db..250a82ecaba 100644 --- a/lib/internal/cluster/child.js +++ b/lib/internal/cluster/child.js @@ -1,6 +1,7 @@ 'use strict'; const { + Map, ObjectAssign, } = primordials; diff --git a/lib/internal/cluster/master.js b/lib/internal/cluster/master.js index bee224a67d9..9bdb0181d3d 100644 --- a/lib/internal/cluster/master.js +++ b/lib/internal/cluster/master.js @@ -1,6 +1,7 @@ 'use strict'; const { + Map, ObjectKeys, ObjectValues, } = primordials; diff --git a/lib/internal/cluster/round_robin_handle.js b/lib/internal/cluster/round_robin_handle.js index 61023b83705..e89a309c798 100644 --- a/lib/internal/cluster/round_robin_handle.js +++ b/lib/internal/cluster/round_robin_handle.js @@ -2,6 +2,7 @@ const { Boolean, + Map, } = primordials; const assert = require('internal/assert'); diff --git a/lib/internal/cluster/utils.js b/lib/internal/cluster/utils.js index b6d572fd0ea..9e7a1186ffc 100644 --- a/lib/internal/cluster/utils.js +++ b/lib/internal/cluster/utils.js @@ -1,5 +1,9 @@ 'use strict'; +const { + Map, +} = primordials; + module.exports = { sendHelper, internal |