diff options
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r-- | src/js/binaryen.js-post.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index d86cb07af..8e41b4e7c 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -3303,6 +3303,16 @@ Module['setLowMemoryUnused'] = function(on) { Module['_BinaryenSetLowMemoryUnused'](on); }; +// Gets whether that an imported memory will be zero-initialized speculation. +Module['getZeroFilledMemory'] = function() { + return Boolean(Module['_BinaryenGetZeroFilledMemory']()); +}; + +// Enables or disables whether that an imported memory will be +// zero-initialized speculation. +Module['setZeroFilledMemory'] = function(on) { + Module['_BinaryenSetZeroFilledMemory'](on); +}; // Gets whether fast math optimizations are enabled, ignoring for example // corner cases of floating-point math like NaN changes. Module['getFastMath'] = function() { |