summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Ahkrin <sebastien48criquet@gmail.com>2020-01-02 18:58:29 +0100
committerBeth Griggs <Bethany.Griggs@uk.ibm.com>2020-02-06 02:49:24 +0000
commit61e794b2436a813385cad51278bb6690e9f64872 (patch)
tree8501edd7d82887fd14edd6082890b1825566d266
parent0229a24b470e032ad3f6d986324a6b50be6a3b80 (diff)
downloadnode-new-61e794b2436a813385cad51278bb6690e9f64872.tar.gz
lib: replace Set.prototype with SetPrototype primordial
PR-URL: https://github.com/nodejs/node/pull/31161 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
-rw-r--r--lib/internal/process/per_thread.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/internal/process/per_thread.js b/lib/internal/process/per_thread.js
index 2ead72781d..650033f352 100644
--- a/lib/internal/process/per_thread.js
+++ b/lib/internal/process/per_thread.js
@@ -12,6 +12,7 @@ const {
ObjectFreeze,
ObjectGetOwnPropertyDescriptors,
RegExpPrototypeTest,
+ SetPrototype,
SetPrototypeHas,
StringPrototypeReplace,
} = primordials;
@@ -284,7 +285,7 @@ function buildAllowedFlags() {
// each object.
const nodeFlags = ObjectDefineProperties(
new Set(allowedNodeEnvironmentFlags.map(trimLeadingDashes)),
- ObjectGetOwnPropertyDescriptors(Set.prototype)
+ ObjectGetOwnPropertyDescriptors(SetPrototype)
);
class NodeEnvironmentFlagsSet extends Set {