Permalink
Browse files

Update README.md with full hello_world.asm.js source

This tripped me up as a complete beginner, since I had copied out the example code from the README rather than the test file.
  • Loading branch information...
Seth Samuel
Seth Samuel committed Aug 18, 2016
1 parent e5e3bf3 commit 5e87de50ae9be4a3348623b7dc9c7d9cd7054fd9
Showing with 4 additions and 0 deletions.
  1. +4 −0 README.md
View
@@ -93,11 +93,15 @@ $ bin/asm2wasm test/hello_world.asm.js
That input file contains
```javascript
function () {
"use asm";
function add(x, y) {
x = x | 0;
y = y | 0;
return x + y | 0;
}
return { add: add };
}
```
You should see something like this:

0 comments on commit 5e87de5

Please sign in to comment.