summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/encoding/sharedarraybuffer.https.html
blob: 2cda3e5fb1cf98b0500f8cd67101dc8894f056a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<!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>