comparison Platforms/Wasm/WasmWebService.js @ 504:7cdb4634846c

Merge
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 26 Feb 2019 21:15:20 +0100
parents 5055031f4a06
children 1b9973905e15
comparison
equal deleted inserted replaced
460:4d8ac609fc33 504:7cdb4634846c
22 stringToUTF8(s, headers, s.length + 1); 22 stringToUTF8(s, headers, s.length + 1);
23 23
24 // TODO - Is "new Uint8Array()" necessary? This copies the 24 // TODO - Is "new Uint8Array()" necessary? This copies the
25 // answer to the WebAssembly stack, hence necessitating 25 // answer to the WebAssembly stack, hence necessitating
26 // increasing the TOTAL_STACK parameter of Emscripten 26 // increasing the TOTAL_STACK parameter of Emscripten
27 WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response), 27 window.WasmWebService_NotifySuccess(callableSuccess, url_, new Uint8Array(this.response),
28 this.response.byteLength, headers, payload); 28 this.response.byteLength, headers, payload);
29 } else { 29 } else {
30 WasmWebService_NotifyError(callableFailure, url_, payload); 30 window.WasmWebService_NotifyError(callableFailure, url_, payload);
31 } 31 }
32 } 32 }
33 } 33 }
34 34
35 xhr.send(); 35 xhr.send();