mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
url: fix performance regression
PR-URL: https://github.com/nodejs/node/pull/39778 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
@@ -617,7 +617,7 @@ function onParseHashComplete(flags, protocol, username, password,
|
||||
}
|
||||
|
||||
function isURLThis(self) {
|
||||
return self?.[context] !== undefined;
|
||||
return (self !== undefined && self !== null && self[context] !== undefined);
|
||||
}
|
||||
|
||||
class URL {
|
||||
|
||||
Reference in New Issue
Block a user