Skip to content

Commit 3ca05ff

Browse files
panvanodejs-github-bot
authored andcommitted
url: make URL.parse enumerable
PR-URL: nodejs#53720 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent da3afd9 commit 3ca05ff

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

lib/internal/url.js

+6
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,12 @@ ObjectDefineProperties(URL, {
11671167
writable: true,
11681168
enumerable: true,
11691169
},
1170+
parse: {
1171+
__proto__: null,
1172+
configurable: true,
1173+
writable: true,
1174+
enumerable: true,
1175+
},
11701176
});
11711177

11721178
function installObjectURLMethods() {

test/wpt/status/url.json

-8
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
1313
]
1414
}
1515
},
16-
"idlharness.any.js": {
17-
"fail": {
18-
"note": "TODO(@panva)",
19-
"expected": [
20-
"URL interface: operation parse(USVString, optional USVString)"
21-
]
22-
}
23-
},
2416
"url-setters-a-area.window.js": {
2517
"skip": "already tested in url-setters.any.js"
2618
},

0 commit comments

Comments
 (0)