Skip to content

Commit 0f2b57d

Browse files
panvaaduh95
authored andcommitted
url: make URL.parse enumerable
PR-URL: #53720 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent bc48090 commit 0f2b57d

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)