diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-05-08 16:55:01 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-05-10 18:22:48 +0200 |
commit | d2eef397312d1c142d95c2aef0ff3d5aeee6495a (patch) | |
tree | 3d5564f2769337c4eee0899d245b246e526ea542 /modules/websocket | |
parent | 7411e7fd37eb169b0f0675d4e4c2ec28786aec1b (diff) |
Fix Closure compiler build, python style.
Move copyToFS into utils.js library included with '--pre-js'.
Diffstat (limited to 'modules/websocket')
-rw-r--r-- | modules/websocket/emws_client.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/websocket/emws_client.cpp b/modules/websocket/emws_client.cpp index bbe4d6dc5b..bceb65c315 100644 --- a/modules/websocket/emws_client.cpp +++ b/modules/websocket/emws_client.cpp @@ -142,14 +142,14 @@ Error EMWSClient::connect_to_host(String p_host, String p_path, uint16_t p_port, } var len = buffer.length*buffer.BYTES_PER_ELEMENT; - var out = Module._malloc(len); - Module.HEAPU8.set(buffer, out); + var out = _malloc(len); + HEAPU8.set(buffer, out); ccall("_esws_on_message", "void", ["number", "number", "number", "number"], [c_ptr, out, len, is_string] ); - Module._free(out); + _free(out); }); socket.addEventListener("error", function (event) { |