Bug 1878058 [wpt PR 44353] - TextDecoder's decode() supports shared buffers, a=testonly

Automatic update from web-platform-tests
TextDecoder's decode() supports shared buffers

--

wpt-commits: 3d0bc46bba289de3f5ba97884014a7c5d7a54ee4
wpt-pr: 44353
This commit is contained in:
Anne van Kesteren authored and moz-wptsync-bot committed 2024-02-05 08:59:54 +00:00
1 parent a3440f36bd
commit cf64efe270
1 file changed
+1 -3
@@ -6,9 +6,7 @@
test(() => {
const decoder = new TextDecoder('utf-8');
const buffer = new SharedArrayBuffer(4);
assert_throws_js(TypeError, () => {
decoder.decode(new Uint8Array(buffer));
}, 'constructing TextDecoder with SharedArrayBuffer view should throw');
assert_equals(decoder.decode(new Uint8Array(buffer)), "\u0000\u0000\u0000\u0000");
}, 'decoding SharedArrayBuffer');
</script>