Build index.html
(and main.js
for node.js) using
sh build.sh
(make sure to use latest Emscripten incoming). That creates a
file index.html
and main.js
. You can then run sh server.sh
in your command line
and open http://localhost:8080 in your browser (or run node main.js
in the command line).
Then, in Chrome (v59) and node.js (v8.2.1,
installed for Ubuntu 16.4 from https://nodejs.org/en/download/package-manager,
compare comment in build.sh
) an error occurs at runtime
[...] RuntimeError: function signature mismatch [...]
Firefox (v54) seems to be fine.
The error disappears if line 11 is removed and build.sh
run again:
// std::cerr << "yay" << std::endl;