From 61e794b2436a813385cad51278bb6690e9f64872 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 with SetPrototype primordial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/31161 Reviewed-By: Colin Ihrig Reviewed-By: Ruben Bridgewater Reviewed-By: Michaƫl Zasso Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat --- 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 {