mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 14:35:58 -10:00
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:
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>
|
||||
Reference in new issue
Block a user