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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/xmlhttprequest/xmlhttprequest-send-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 xhr = new XMLHttpRequest();
9 xhr.open('POST', '/foo.html');
10
11 assert_throws(null, () => {
12 xhr.send(new Uint8Array(new SharedArrayBuffer(32)));
13 }, 'send() of SharedArrayBuffer view should throw');
14 }, 'sending SharedArrayBuffer');
15 }
16 done();
17
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698