mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
Signed-off-by: Filip Skokan <panva.ip@gmail.com> PR-URL: https://github.com/nodejs/node/pull/62719 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
11 lines
418 B
JavaScript
11 lines
418 B
JavaScript
// META: global=window,worker
|
|
test(() => {
|
|
assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%(')); } );
|
|
assert_throws_js(TypeError, () => { new URLPattern(new URL('https://example.org/%((')); } );
|
|
assert_throws_js(TypeError, () => { new URLPattern('(\\'); } );
|
|
}, `Test unclosed token`);
|
|
|
|
test(() => {
|
|
new URLPattern(undefined, undefined);
|
|
}, `Test constructor with undefined`);
|