Skip to content
Permalink
Browse files

lib: replace Set.prototype with SetPrototype primordial

PR-URL: #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>
  • Loading branch information
Sebastien-Ahkrin authored and targos committed Jan 2, 2020
1 parent ae58c97 commit 1527796661ee09acc80b0298b7508320576f1859
Showing with 2 additions and 1 deletion.
  1. +2 −1 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 {

0 comments on commit 1527796

Please sign in to comment.
You can’t perform that action at this time.