From 124c125dc0632ba33e5f0c941ec0532ef8a68ea1 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 28 May 2026 09:49:31 +0200 Subject: [PATCH] chore(core): define `kEnumerableProperty` atomically --- lib/core/util.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/core/util.js b/lib/core/util.js index 23e94651562..0d84c203a94 100644 --- a/lib/core/util.js +++ b/lib/core/util.js @@ -942,8 +942,10 @@ function getProtocolFromUrlString (urlString) { return urlString.slice(0, urlString.indexOf(':') + 1) } -const kEnumerableProperty = Object.create(null) -kEnumerableProperty.enumerable = true +const kEnumerableProperty = { + __proto__: null, + enumerable: true +} const normalizedMethodRecordsBase = { delete: 'DELETE',