mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
This commit is contained in:
committed by
Rich Trott
parent
bf6b39dc9f
commit
e56840368b
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user