mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-09 12:51:09 +02:00
Automatic update from web-platform-tests *.any.js: explicitly list defaults, part 1 (#23117) * *.any.js: explicitly list defaults, part 1 Helps with #23111. * add a couple more -- wpt-commits: e1e713c842e54ea0a9410ddc988b63d0e1d31973 wpt-pr: 23117
15 lines
557 B
JavaScript
15 lines
557 B
JavaScript
// META: global=window,worker
|
|
|
|
'use strict';
|
|
|
|
test(t => {
|
|
assert_throws_js(TypeError, () => new DecompressionStream('a'), 'constructor should throw');
|
|
}, '"a" should cause the constructor to throw');
|
|
|
|
test(t => {
|
|
assert_throws_js(TypeError, () => new DecompressionStream(), 'constructor should throw');
|
|
}, 'no input should cause the constructor to throw');
|
|
|
|
test(t => {
|
|
assert_throws_js(Error, () => new DecompressionStream({ toString() { throw Error(); } }), 'constructor should throw');
|
|
}, 'non-string input should cause the constructor to throw');
|