Skip to content

Commit

Permalink
Allow working with older emcc versions
Browse files Browse the repository at this point in the history
  • Loading branch information
phoboslab committed May 28, 2019
1 parent 1f9b679 commit 7aa9777
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/wasm-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ WASM.prototype.loadFromBuffer = function(buffer, callback) {
this.memory = new WebAssembly.Memory({initial: 256});
var env = {
memory: this.memory,
memoryBase: 0,
__memory_base: 0,
table: new WebAssembly.Table({initial: this.moduleInfo.tableSize, element: 'anyfunc'}),
tableBase: 0,
__table_base: 0,
abort: this.c_abort.bind(this),
___assert_fail: this.c_assertFail.bind(this),
Expand Down

0 comments on commit 7aa9777

Please sign in to comment.