diff options
author | XadillaX <i@2333.moe> | 2021-08-23 12:58:47 +0300 |
---|---|---|
committer | XadillaX <i@2333.moe> | 2021-08-26 10:18:09 +0300 |
commit | 48655e17e1d84ba5021d7a94b4b88823f7c9c6cf (patch) | |
tree | 759453ad0f1bed8a12e5fd16213c49a37849c1da /doc/api | |
parent | 31772a4e85c642276604af6850caa3c590d21aa5 (diff) |
lib,url: correct URL's argument to pass idlharness
`url.idl` defines URL's constructor as:
```
constructor(USVString url, optional USVString base);
```
`idlharness.any.js` checks its length as `1`. So we should remove
constructor's second argument and use `arguments[1]` in constructor's
logic.
Refs: https://url.spec.whatwg.org/#idl-index
PR-URL: https://github.com/nodejs/node/pull/39848
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api')
0 files changed, 0 insertions, 0 deletions