Skip to content

Commit

Permalink
url: remove unused kFormat from url
Browse files Browse the repository at this point in the history
PR-URL: nodejs#46867
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
  • Loading branch information
anonrig committed Jul 6, 2023
1 parent 45c1ea8 commit 1d3c55f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/internal/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,6 @@ const FORWARD_SLASH = /\//g;

const context = Symbol('context');
const searchParams = Symbol('query');
const kFormat = Symbol('format');

const updateActions = {
kProtocol: 0,
Expand Down Expand Up @@ -815,7 +814,6 @@ class URL {
}

ObjectDefineProperties(URL.prototype, {
[kFormat]: { __proto__: null, configurable: false, writable: false },
[SymbolToStringTag]: { __proto__: null, configurable: true, value: 'URL' },
toString: kEnumerableProperty,
href: kEnumerableProperty,
Expand Down

0 comments on commit 1d3c55f

Please sign in to comment.