Skip to content

Commit b1550a6

Browse files
Sebastien-Ahkrintargos
authored andcommitted
lib: replace Set.prototype with SetPrototype primordial
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]>
1 parent f33147b commit b1550a6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/process/per_thread.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const {
1212
ObjectFreeze,
1313
ObjectGetOwnPropertyDescriptors,
1414
RegExpPrototypeTest,
15+
SetPrototype,
1516
SetPrototypeHas,
1617
StringPrototypeReplace,
1718
} = primordials;
@@ -284,7 +285,7 @@ function buildAllowedFlags() {
284285
// each object.
285286
const nodeFlags = ObjectDefineProperties(
286287
new Set(allowedNodeEnvironmentFlags.map(trimLeadingDashes)),
287-
ObjectGetOwnPropertyDescriptors(Set.prototype)
288+
ObjectGetOwnPropertyDescriptors(SetPrototype)
288289
);
289290

290291
class NodeEnvironmentFlagsSet extends Set {

0 commit comments

Comments
 (0)