summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2016-08-18 17:03:47 -0700
committerGitHub <noreply@github.com>2016-08-18 17:03:47 -0700
commite168e2b9b6dd099c97c7ec313c3062d80fa1a9a8 (patch)
treeddeb962a1781f01dfb75cafc2b0d77f28de450f6
parente5e3bf39f25ed3a2fb45a9ca1f55d6828d81a3eb (diff)
parent5e87de50ae9be4a3348623b7dc9c7d9cd7054fd9 (diff)
downloadbinaryen-e168e2b9b6dd099c97c7ec313c3062d80fa1a9a8.tar.gz
binaryen-e168e2b9b6dd099c97c7ec313c3062d80fa1a9a8.tar.bz2
binaryen-e168e2b9b6dd099c97c7ec313c3062d80fa1a9a8.zip
Merge pull request #677 from sethsamuel/patch-1
Update README.md with full hello_world.asm.js source
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 24717c3f1..b04942f19 100644
--- a/README.md
+++ b/README.md
@@ -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: