Skip to content

Commit adfffd2

Browse files
committed
polyfill: fetch: disable Arraybuffer usage
1 parent 4138c6f commit adfffd2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/polyfill/fetch.zig

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ pub const source =
4444
\\ }
4545
\\ })(),
4646
\\ formData: 'FormData' in g,
47-
\\ arrayBuffer: 'ArrayBuffer' in g
47+
\\
48+
49+
// Arraybuffer is available but xhr doesn't implement it for now.
50+
//\\ arrayBuffer: 'ArrayBuffer' in g
51+
\\ arrayBuffer: false
52+
//
53+
4854
\\ };
4955
\\
5056
\\ function isDataView(obj) {

0 commit comments

Comments
 (0)