From b8560ec8ccc7f2176bd0203e90110a84eabc739b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Wed, 1 Mar 2023 21:47:24 +0100 Subject: [PATCH] url: remove unnecessary call to `FunctionPrototypeBind` PR-URL: https://github.com/nodejs/node/pull/46870 Reviewed-By: Colin Ihrig Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Ruben Bridgewater Reviewed-By: Luigi Pinca --- lib/internal/url.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 4f42cb1dedca8d..e3ff475dfabfa1 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -7,7 +7,6 @@ const { ArrayPrototypePush, ArrayPrototypeReduce, ArrayPrototypeSlice, - FunctionPrototypeBind, Int8Array, IteratorPrototype, Number, @@ -544,7 +543,6 @@ class URL { // toUSVString is not needed. input = `${input}`; this[context] = new URLContext(); - this.#onParseComplete = FunctionPrototypeBind(this.#onParseComplete, this); if (base !== undefined) { base = `${base}`;