From 6757fba515555dd11003496f5b1e0c5ee69e1f0a Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Thu, 28 Nov 2024 15:52:39 +0100 Subject: [PATCH] polyfill: fetch: disable Arraybuffer usage --- src/polyfill/fetch.zig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/polyfill/fetch.zig b/src/polyfill/fetch.zig index 5911707d..1414d56f 100644 --- a/src/polyfill/fetch.zig +++ b/src/polyfill/fetch.zig @@ -44,7 +44,13 @@ pub const source = \\ } \\ })(), \\ formData: 'FormData' in g, - \\ arrayBuffer: 'ArrayBuffer' in g + \\ + + // Arraybuffer is available but xhr doesn't implement it for now. + //\\ arrayBuffer: 'ArrayBuffer' in g + \\ arrayBuffer: false + // + \\ }; \\ \\ function isDataView(obj) {