From f1f8df892ae6e6bcabc60e92c6ab019d459f0eec Mon Sep 17 00:00:00 2001 From: Sebastien Ahkrin Date: Thu, 2 Jan 2020 18:58:29 +0100 Subject: [PATCH] lib: replace Set.prototype by SetPrototype primordials --- lib/internal/process/per_thread.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {