Skip to content

Commit

Permalink
Fix for Emscripten latest version
Browse files Browse the repository at this point in the history
Change wasm module to accomodate emscripten changes.
From changelog:
v1.38.18: 11/08/2018
--------------------
 - Wasm dynamic linking: Rename `tableBase/memoryBase` to
   `__table_base/__memory_base` (#7467)
  • Loading branch information
kresimirfijacko committed Feb 19, 2019
1 parent 4f21d11 commit bbe0c31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wasm-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ 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),
_sbrk: this.c_sbrk.bind(this)
Expand Down

0 comments on commit bbe0c31

Please sign in to comment.