mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04:00
perf(url): return early if url has no query string (#15856)
This commit is contained in:
parent
dee9f0acaf
commit
6d8f6d5af0
1 changed files with 5 additions and 0 deletions
|
@ -92,6 +92,11 @@
|
|||
{ prefix, context: "Argument 1" },
|
||||
);
|
||||
this[webidl.brand] = webidl.brand;
|
||||
if (!init) {
|
||||
// if there is no query string, return early
|
||||
this[_list] = [];
|
||||
return;
|
||||
}
|
||||
|
||||
if (typeof init === "string") {
|
||||
// Overload: USVString
|
||||
|
|
Loading…
Reference in a new issue