Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Aug 23, 2021
1 parent bdc0ebb commit 229377b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/internal/url.js
Expand Up @@ -621,17 +621,9 @@ function isURLThis(self) {
}

class URL {
constructor(input) {
constructor(input, base = undefined) {
// toUSVString is not needed.
input = `${input}`;

// idlharness.any.js needs constructor's length to be 1, so there should be
// only one argument `input`. We get the second argument `base` from
// `arguments` object.
let base;
if (arguments.length >= 2) {
base = arguments[1];
}
let base_context;
if (base !== undefined) {
base_context = new URL(base)[context];
Expand Down

0 comments on commit 229377b

Please sign in to comment.