Skip to content

Commit 84b75f0

Browse files
authored
1 parent eb03b3c commit 84b75f0

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
test(() => {
12+
new URLPattern(undefined, undefined);
13+
}, `Test constructor with undefined`);
14+
</script>

0 commit comments

Comments
 (0)