mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
test: update WPT encoding tests
PR-URL: https://github.com/nodejs/node/pull/43958 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Feng Yu <F3n67u@outlook.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
9599700537
commit
536df6a439
15 files changed
+259
-22
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<!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_throws_js(TypeError, () => {
|
||||
decoder.decode(new Uint8Array(buffer));
|
||||
}, 'constructing TextDecoder with SharedArrayBuffer view should throw');
|
||||
}, 'decoding SharedArrayBuffer');
|
||||
|
||||
</script>
|
||||
Reference in new issue
Block a user