aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js')
-rw-r--r--tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js b/tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js
index 21b70201271..3fe442bf133 100644
--- a/tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js
+++ b/tests/wpt/web-platform-tests/encoding/streams/decode-attributes.any.js
@@ -46,25 +46,25 @@ for (const trueValue of [true, 1, {}, [], 'yes']) {
}
test(() => {
- assert_throws(new RangeError(), () => new TextDecoderStream(''),
+ assert_throws_js(RangeError, () => new TextDecoderStream(''),
'the constructor should throw');
}, 'constructing with an invalid encoding should throw');
test(() => {
- assert_throws(new TypeError(), () => new TextDecoderStream({
+ assert_throws_js(TypeError, () => new TextDecoderStream({
toString() { return {}; }
}), 'the constructor should throw');
}, 'constructing with a non-stringifiable encoding should throw');
test(() => {
- assert_throws(new Error(),
+ assert_throws_js(Error,
() => new TextDecoderStream('utf-8', {
get fatal() { throw new Error(); }
}), 'the constructor should throw');
}, 'a throwing fatal member should cause the constructor to throw');
test(() => {
- assert_throws(new Error(),
+ assert_throws_js(Error,
() => new TextDecoderStream('utf-8', {
get ignoreBOM() { throw new Error(); }
}), 'the constructor should throw');