Skip to content

Commit 61e794b

Browse files
Sebastien-AhkrinBethGriggs
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 0229a24 commit 61e794b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎lib/internal/process/per_thread.js‎

Lines changed: 2 additions & 1 deletion
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
constnodeFlags=ObjectDefineProperties(
286287
newSet(allowedNodeEnvironmentFlags.map(trimLeadingDashes)),
287-
ObjectGetOwnPropertyDescriptors(Set.prototype)
288+
ObjectGetOwnPropertyDescriptors(SetPrototype)
288289
);
289290

290291
classNodeEnvironmentFlagsSetextendsSet{

0 commit comments

Comments
(0)