From 1837aed79b77b3137563d4730d02e466c85b2b87 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 2 Oct 2024 09:02:46 -0700 Subject: Revert "fix(urlpattern): fallback to empty string for undefined group values" (#25961) --- tests/unit/urlpattern_test.ts | 6 ------ 1 file changed, 6 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/urlpattern_test.ts b/tests/unit/urlpattern_test.ts index 65c224173..3c1fb0cf1 100644 --- a/tests/unit/urlpattern_test.ts +++ b/tests/unit/urlpattern_test.ts @@ -63,9 +63,3 @@ Deno.test(function urlPatternWithPrototypePollution() { RegExp.prototype.exec = originalExec; } }); - -Deno.test(function urlPatternEmptyFallback() { - const p = new URLPattern({ pathname: "/foo/bar{/:qaz}?" }); - const match = p.exec("https://example.com/foo/bar"); - assertEquals(match!.pathname.groups.qaz, ""); -}); -- cgit v1.2.3