diff --git a/lib/internal/process/per_thread.js b/lib/internal/process/per_thread.js index 2ead72781d53f0..650033f352e438 100644 --- a/lib/internal/process/per_thread.js +++ b/lib/internal/process/per_thread.js @@ -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 {