diff options
Diffstat (limited to 'test/wasm2js/forward.2asm.js')
-rw-r--r-- | test/wasm2js/forward.2asm.js | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/test/wasm2js/forward.2asm.js b/test/wasm2js/forward.2asm.js index 1fd671e49..f89cd6691 100644 --- a/test/wasm2js/forward.2asm.js +++ b/test/wasm2js/forward.2asm.js @@ -21,26 +21,24 @@ function asmFunc(global, env, buffer) { var abort = env.abort; var nan = global.NaN; var infinity = global.Infinity; - function even(n) { - n = n | 0; - var $6 = 0; - if ((n | 0) == (0 | 0)) { - $6 = 1 + function even($0) { + $0 = $0 | 0; + if (($0 | 0) == (0 | 0)) { + $0 = 1 } else { - $6 = odd(n - 1 | 0 | 0) | 0 + $0 = odd($0 - 1 | 0 | 0) | 0 } - return $6 | 0; + return $0 | 0; } - function odd(n) { - n = n | 0; - var $6 = 0; - if ((n | 0) == (0 | 0)) { - $6 = 0 + function odd($0) { + $0 = $0 | 0; + if (($0 | 0) == (0 | 0)) { + $0 = 0 } else { - $6 = even(n - 1 | 0 | 0) | 0 + $0 = even($0 - 1 | 0 | 0) | 0 } - return $6 | 0; + return $0 | 0; } var FUNCTION_TABLE = []; |