Update nbody example for Rust (#528)

This commit is contained in:
Max Graey
2019-03-06 22:27:54 +02:00
committed by Daniel Wirtz
parent f841f0fe1f
commit 5f547131ab
6 changed files with 18 additions and 14 deletions

View File

@ -8,8 +8,8 @@ const compiled = new WebAssembly.Module(
const imports = {
env: {
memory: new WebAssembly.Memory({ initial: 17 }),
abort: (filename, line, column) => {
throw Error("abort called at " + line + ":" + colum);
abort: (_filename, line, column) => {
throw Error("abort called at " + line + ":" + column);
}
}
};