From 0f2b57d1bcd4afdbbe9601728c0fc8ff829ea3b3 Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Thu, 4 Jul 2024 14:56:57 +0200 Subject: [PATCH] url: make URL.parse enumerable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53720 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Chengzhong Wu Reviewed-By: Yagiz Nizipli Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum Reviewed-By: Matteo Collina --- lib/internal/url.js | 6 ++++++ test/wpt/status/url.json | 8 -------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/internal/url.js b/lib/internal/url.js index 0615e38c8a761f..ed5644fe59515b 100644 --- a/lib/internal/url.js +++ b/lib/internal/url.js @@ -1167,6 +1167,12 @@ ObjectDefineProperties(URL, { writable: true, enumerable: true, }, + parse: { + __proto__: null, + configurable: true, + writable: true, + enumerable: true, + }, }); function installObjectURLMethods() { diff --git a/test/wpt/status/url.json b/test/wpt/status/url.json index d3b1ac730826c0..96dafd91b707d5 100644 --- a/test/wpt/status/url.json +++ b/test/wpt/status/url.json @@ -13,14 +13,6 @@ ] } }, - "idlharness.any.js": { - "fail": { - "note": "TODO(@panva)", - "expected": [ - "URL interface: operation parse(USVString, optional USVString)" - ] - } - }, "url-setters-a-area.window.js": { "skip": "already tested in url-setters.any.js" },