mirror of
https://github.com/servo/servo
synced 2026-05-14 02:47:14 +02:00
6 lines
285 B
JavaScript
6 lines
285 B
JavaScript
test(() => {
|
|
assert_throws_js(TypeError, () => {
|
|
new Request("", {importance: 'invalid'});
|
|
}, "a new Request() must throw a TypeError if RequestInit's importance is an invalid value");
|
|
}, "new Request() throws a TypeError if any of RequestInit's members' values are invalid");
|