diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-03-03 15:58:28 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2021-03-05 20:17:58 +0100 |
commit | 44a662a1494388c2a7c7ac0a184497569e59867b (patch) | |
tree | e348890d9f256e8f03a05f1164ccd4a08511ca69 /platform/javascript/js/libs/library_godot_http_request.js | |
parent | cb1b89dac5b9a73612ccf8f61dfcc9d55c9ad598 (diff) | |
download | redot-engine-44a662a1494388c2a7c7ac0a184497569e59867b.tar.gz |
[HTML5] Rename heapCopy to heapSlice.
New heapCopy function copies a TypedArray to the heap.
Diffstat (limited to 'platform/javascript/js/libs/library_godot_http_request.js')
-rw-r--r-- | platform/javascript/js/libs/library_godot_http_request.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/javascript/js/libs/library_godot_http_request.js b/platform/javascript/js/libs/library_godot_http_request.js index 7dc2a2df29..2412f87e81 100644 --- a/platform/javascript/js/libs/library_godot_http_request.js +++ b/platform/javascript/js/libs/library_godot_http_request.js @@ -86,7 +86,7 @@ const GodotHTTPRequest = { godot_xhr_send: function (xhrId, p_ptr, p_len) { let data = null; if (p_ptr && p_len) { - data = GodotRuntime.heapCopy(HEAP8, p_ptr, p_len); + data = GodotRuntime.heapSlice(HEAP8, p_ptr, p_len); } GodotHTTPRequest.requests[xhrId].send(data); }, |