Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(146)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/encoding/api/sharedarraybuffer.html

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../resources/testharness.js"></script>
3 <script src="../../../resources/testharnessreport.js"></script>
4 <script>
5
6 if (window.SharedArrayBuffer) {
7 test(() => {
8 const decoder = new TextDecoder('utf-8');
9 assert_throws(null, () => {
10 decoder.decode(new Uint8Array(new SharedArrayBuffer(4)));
11 }, 'constructing TextDecoder with SharedArrayBuffer view should throw');
12 }, 'decoding SharedArrayBuffer');
13 }
14 done();
15
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698