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',