Index: third_party/WebKit/LayoutTests/fast/encoding/api/sharedarraybuffer.html |
diff --git a/third_party/WebKit/LayoutTests/fast/encoding/api/sharedarraybuffer.html b/third_party/WebKit/LayoutTests/fast/encoding/api/sharedarraybuffer.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..161b546b07b79cdac705352f6532d9058bfab7da |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/encoding/api/sharedarraybuffer.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<script> |
+ |
+if (window.SharedArrayBuffer) { |
+ test(() => { |
+ const decoder = new TextDecoder('utf-8'); |
+ assert_throws(null, () => { |
+ decoder.decode(new Uint8Array(new SharedArrayBuffer(4))); |
+ }, 'constructing TextDecoder with SharedArrayBuffer view should throw'); |
+ }, 'decoding SharedArrayBuffer'); |
+} |
+done(); |
+ |
+</script> |