Update web-platform-tests to revision 474923949524b5c05a9e6f28ec082fdca87078de

This commit is contained in:
WPT Sync Bot 2019-10-25 10:23:30 +00:00
parent b7b1b903d3
commit 328d5a4231
91 changed files with 3190 additions and 185 deletions

View file

@ -0,0 +1,15 @@
// META: global=worker
'use strict';
test(t => {
assert_throws(new TypeError(), () => new DecompressionStream('a'), 'constructor should throw');
}, '"a" should cause the constructor to throw');
test(t => {
assert_throws(new TypeError(), () => new DecompressionStream(), 'constructor should throw');
}, 'no input should cause the constructor to throw');
test(t => {
assert_throws(new Error(), () => new DecompressionStream({ toString() { throw Error(); } }), 'constructor should throw');
}, 'non-string input should cause the constructor to throw');