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 <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
  • 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.