Browse Source

Merge pull request #1 from phoboslab/master

kresimirfijacko 7 years ago
parent
commit
dca01a0616
No account linked to committer's email
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/wasm-module.js

+ 2 - 2
src/wasm-module.js View File

27
 	this.memory = new WebAssembly.Memory({initial: 256});
27
 	this.memory = new WebAssembly.Memory({initial: 256});
28
 	var env = {
28
 	var env = {
29
 		memory: this.memory,
29
 		memory: this.memory,
30
-		memoryBase: 0,
30
+		__memory_base: 0,
31
 		table: new WebAssembly.Table({initial: this.moduleInfo.tableSize, element: 'anyfunc'}),
31
 		table: new WebAssembly.Table({initial: this.moduleInfo.tableSize, element: 'anyfunc'}),
32
-		tableBase: 0,
32
+		__table_base: 0,
33
 		abort: this.c_abort.bind(this),
33
 		abort: this.c_abort.bind(this),
34
 		___assert_fail: this.c_assertFail.bind(this),
34
 		___assert_fail: this.c_assertFail.bind(this),
35
 		_sbrk: this.c_sbrk.bind(this)
35
 		_sbrk: this.c_sbrk.bind(this)