From 2a935b64dde22671644c4712d0f45e8df60f94eb Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Wed, 30 Sep 2020 17:21:51 -0700 Subject: 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 --- scripts/wasm2js.js | 6 ------ 1 file changed, 6 deletions(-) (limited to 'scripts/wasm2js.js') 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; - } }; }, -- cgit v1.2.3