fune/testing/web-platform/tests/encoding/sharedarraybuffer.https.html
Anne van Kesteren 4b175e22c8 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
2024-02-05 08:59:54 +00:00

12 lines
362 B
HTML

<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(() => {
const decoder = new TextDecoder('utf-8');
const buffer = new SharedArrayBuffer(4);
assert_equals(decoder.decode(new Uint8Array(buffer)), "\u0000\u0000\u0000\u0000");
}, 'decoding SharedArrayBuffer');
</script>