Skip to content

Commit

Permalink
lib: replace Set.prototype with SetPrototype primordial
Browse files Browse the repository at this point in the history
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 6, 2020
1 parent ae58c97 commit 1527796
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/process/per_thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const {
ObjectFreeze,
ObjectGetOwnPropertyDescriptors,
RegExpPrototypeTest,
SetPrototype,
SetPrototypeHas,
StringPrototypeReplace,
} = primordials;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 1527796

Please sign in to comment.