diff options
Diffstat (limited to 'src/preamble.js')
-rw-r--r-- | src/preamble.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/preamble.js b/src/preamble.js index 503b09f1..b355f130 100644 --- a/src/preamble.js +++ b/src/preamble.js @@ -742,6 +742,8 @@ Module['writeArrayToMemory'] = writeArrayToMemory; {{{ unSign }}} {{{ reSign }}} +if (!Math.imul) Math.imul = function(x, y) { return (x*y)|0 }; // # not a real polyfill since semantics not identical, but close and fast + // A counter of dependencies for calling run(). If we need to // do asynchronous work before running, increment this and // decrement it. Incrementing must happen in a place like |