From 8422ac21585441841b38141744e7b971e421c3e4 Mon Sep 17 00:00:00 2001 From: Yagiz Nizipli Date: Mon, 27 Feb 2023 09:21:41 -0500 Subject: [PATCH] url: remove unused `kFormat` from url PR-URL: https://github.com/nodejs/node/pull/46867 Reviewed-By: Matteo Collina Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Benjamin Gruenbaum Reviewed-By: Filip Skokan --- lib/internal/url.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 3b61f432b91dad..4f42cb1dedca8d 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -101,7 +101,6 @@ const FORWARD_SLASH = /\//g; const context = Symbol('context'); const searchParams = Symbol('query'); -const kFormat = Symbol('format'); const updateActions = { kProtocol: 0, @@ -794,7 +793,6 @@ class URL { } ObjectDefineProperties(URL.prototype, { - [kFormat]: { __proto__: null, configurable: false, writable: false }, [SymbolToStringTag]: { __proto__: null, configurable: true, value: 'URL' }, toString: kEnumerableProperty, href: kEnumerableProperty,