Skip to content

Commit 022bb05

Browse files
authored
fix n-body example for web (#21)
1 parent e4f0775 commit 022bb05

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

n-body/asconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"options": {
33
"runtime": "stub",
44
"initialMemory": 17,
5-
"noExportMemory": true,
65
"sourceMap": true
76
},
87
"targets": {

n-body/build/as_nbody.wasm

9 Bytes
Binary file not shown.

n-body/index.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ <h1>
4141
.then(response => response.arrayBuffer())
4242
.then(buffer => WebAssembly.instantiate(buffer, {
4343
env: {
44-
memory: new WebAssembly.Memory({ initial: 1 }),
45-
abort: function() { throw Error("abort called"); }
44+
abort() { throw Error("abort called"); }
4645
}
4746
}))
4847
.then(module => {

0 commit comments

Comments
 (0)