diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/preamble.js b/src/preamble.js index 9342bf2b..931c8f51 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -575,9 +575,6 @@ Module['Array_stringify'] = Array_stringify; // Memory management -var FUNCTION_TABLE; // XXX: In theory the indexes here can be equal to pointers to stacked or malloced memory. Such comparisons should - // be false, but can turn out true. We should probably set the top bit to prevent such issues. - var PAGE_SIZE = 4096; function alignMemoryPage(x) { return ((x+4095)>>12)<<12; @@ -735,7 +732,7 @@ function callRuntimeCallbacks(callbacks) { var callback = callbacks.shift(); var func = callback.func; if (typeof func === 'number') { - func = FUNCTION_TABLE[func]; + func = FUNCTION_TABLE_v[func]; // void() } func(callback.arg === undefined ? null : callback.arg); } |