https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 94fd139ae5d0bdc4274b5e2c4e91035d63876e5c authored by Marcos Cáceres on 29 November 2018, 10:38:58 UTC
Test payment request is showing boolean
Tip revision: 94fd139
RTCPeerConnection-constructor.html
<!doctype html>
<meta charset=utf-8>
<title>RTCPeerConnection constructor</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
test(() => {
    const toStringThrows = { toString: function() { throw new Error; } };
    assert_throws(new Error, () => new RTCPeerConnection({ peerIdentity: toStringThrows }));
}, "RTCPeerConnection constructor throws if the given peerIdentity getter throws");
</script>
back to top