mirror of
https://github.com/servo/servo.git
synced 2025-06-30 03:53:37 +01:00
5 lines
288 B
JavaScript
5 lines
288 B
JavaScript
test(() => {
|
|
assert_throws(new 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");
|