From 711a22c65f28029ae0ca2d31a0cd6f8be9b953c7 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Apr 2019 14:46:42 -0700 Subject: wasm2js: get rid of some non-flat code assumptions (#2036) We run flatten there, which lets us simplify things a lot. Turns out that for assertions we didn't run it, which is why we still needed the old non-flat code paths. This adds flatten there and removes that old code and assumptions. --- test/wasm2js/select.2asm.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/wasm2js/select.2asm.js') diff --git a/test/wasm2js/select.2asm.js b/test/wasm2js/select.2asm.js index fdc12ba92..264ebb071 100644 --- a/test/wasm2js/select.2asm.js +++ b/test/wasm2js/select.2asm.js @@ -68,13 +68,13 @@ function asmFunc(global, env, buffer) { function $4(cond) { cond = cond | 0; var $1_1 = 0; - return abort() | 0; + abort(); } function $5(cond) { cond = cond | 0; var $1_1 = 0; - return abort() | 0; + abort(); } function legalstub$1($0_1, $1_1, $2_1, $3_1, $4_1) { -- cgit v1.2.3