diff options
author | Sam Clegg <sbc@chromium.org> | 2020-09-30 17:21:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-30 17:21:51 -0700 |
commit | 2a935b64dde22671644c4712d0f45e8df60f94eb (patch) | |
tree | 56612d0ed4c9036293b4dba7137eb29ba5428290 /scripts/wasm2js.js | |
parent | 2f6939a2cecc37691a1e474ff15a7801f9509cfb (diff) | |
download | binaryen-2a935b64dde22671644c4712d0f45e8df60f94eb.tar.gz binaryen-2a935b64dde22671644c4712d0f45e8df60f94eb.tar.bz2 binaryen-2a935b64dde22671644c4712d0f45e8df60f94eb.zip |
wasm2js: override incoming memory's grow method (#3185)
This will allow for the completely removal of
`__growWasmMemory` as a followup. We currently
unconditionally generate this function
in `generateMemoryGrowthFunction`.
See #3180
Diffstat (limited to 'scripts/wasm2js.js')
-rw-r--r-- | scripts/wasm2js.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/wasm2js.js b/scripts/wasm2js.js index 7bb8453bc..babf31267 100644 --- a/scripts/wasm2js.js +++ b/scripts/wasm2js.js @@ -6,12 +6,6 @@ var WebAssembly = { Memory: function(opts) { return { buffer: new ArrayBuffer(opts['initial'] * 64 * 1024), - grow: function(amount) { - var oldBuffer = this.buffer; - var ret = __growWasmMemory(amount); - assert(this.buffer !== oldBuffer); // the call should have updated us - return ret; - } }; }, |