From 928a2b04ddaa5da81ce5e5852c886b58bab8cc74 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 3d36f320f11f1e..193965b76d346d 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}`;