We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb03b3c commit 84b75f0Copy full SHA for 84b75f0
1 file changed
urlpattern/urlpattern-constructor.html
@@ -0,0 +1,14 @@
1
+<!DOCTYPE html>
2
+<script src="/resources/testharness.js"></script>
3
+<script src="/resources/testharnessreport.js"></script>
4
+<script>
5
+test(() => {
6
+ assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%(')); } );
7
+ assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%((')); } );
8
+ assert_throws_js(TypeError, () => { new URLPattern('(\\'); } );
9
+}, `Test unclosed token`);
10
+
11
12
+ new URLPattern(undefined, undefined);
13
+}, `Test constructor with undefined`);
14
+</script>
0 commit comments