blob: a27d1ddf497a7fa0ccd8ecd40b94732a831da97c (
plain)
1
2
3
4
5
6
7
8
|
'use strict';
test(() => {
assert_throws_dom("NotAllowedError", () => new TCPSocket("address.com", 53), "constructor should throw");
}, "tcp disabled by permissions-policy");
test(() => {
assert_throws_dom("NotAllowedError", () => new UDPSocket({ remoteAddress: "address.com", remotePort: 53 }), "constructor should throw");
}, "udp disabled by permissions-policy");
|