Skip to content
Prev Previous commit
Next Next commit
No commit message
  • Loading branch information
Pannous committed Mar 20, 2018
commit cb3819edef5785e085c248e1b6b28ba4f045fe7e
8 changes: 6 additions & 2 deletions examples/hello-world/hello-world.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ node -i -e "\
instance= new WebAssembly.Instance(module,imports);\
"

# instead of printing 'Hello' char by char with the little glue function log_char,
# we could also do new Buffer(instance.exports.memory.buffer).slice(8,50).toString('utf16le')
# load and run the binary in the browser:
# open "hello-world.html"

# chrome needs 'proper' server for example:
# open "http://localhost/hello-world.html"
# sudo python -m SimpleHTTPServer 80