We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc0ebb commit 229377bCopy full SHA for 229377b
lib/internal/url.js
@@ -621,17 +621,9 @@ function isURLThis(self) {
621
}
622
623
class URL {
624
- constructor(input) {
+ constructor(input, base = undefined) {
625
// toUSVString is not needed.
626
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
- }
635
let base_context;
636
if (base !== undefined) {
637
base_context = new URL(base)[context];
0 commit comments