Print the error when async wasm instantiate fails (#4944)

This commit is contained in:
jgravelle-google 2017-02-13 17:29:30 -08:00 коммит произвёл Alon Zakai
Родитель c348c784c2
Коммит 6544ba934d
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -2215,6 +2215,8 @@ function integrateWasmJS(Module) {
// receiveInstance() will swap in the exports (to Module.asm) so they can be called
receiveInstance(output.instance);
removeRunDependency('wasm-instantiate');
}).catch(function(reason) {
Module['printErr']('failed to asynchronously prepare wasm:\n ' + reason);
});
return {}; // no exports yet; we'll fill them in later
#endif