Skip to content

Commit 229377b

Browse files
committed
f
1 parent bdc0ebb commit 229377b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/internal/url.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -621,17 +621,9 @@ function isURLThis(self) {
621621
}
622622

623623
class URL {
624-
constructor(input) {
624+
constructor(input, base = undefined) {
625625
// toUSVString is not needed.
626626
input = `${input}`;
627-
628-
// idlharness.any.js needs constructor's length to be 1, so there should be
629-
// only one argument `input`. We get the second argument `base` from
630-
// `arguments` object.
631-
let base;
632-
if (arguments.length >= 2) {
633-
base = arguments[1];
634-
}
635627
let base_context;
636628
if (base !== undefined) {
637629
base_context = new URL(base)[context];

0 commit comments

Comments
 (0)