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/test/wasm2js.py | 3 +++ scripts/wasm2js.js | 6 ------ 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/test/wasm2js.py b/scripts/test/wasm2js.py index 38a2defd7..11f7011a1 100644 --- a/scripts/test/wasm2js.py +++ b/scripts/test/wasm2js.py @@ -30,6 +30,9 @@ wasm2js_blacklist = ['empty_imported_table.wast'] def check_for_stale_files(): + if shared.options.test_name_filter: + return + # TODO(sbc): Generalize and apply other test suites all_tests = [] for t in tests + spec_tests + wasm2js_tests: 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