From dce3791b402cc1e49da000cfe918bb21e81b4a6a Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 30 Oct 2015 16:47:22 -0700 Subject: fix double compares --- test/unit.asm.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/unit.asm.js') diff --git a/test/unit.asm.js b/test/unit.asm.js index 80bab6242..2b599d99a 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -15,6 +15,12 @@ function () { var temp = 0.0; temp = t + u + (-u) + (-t); } + function doubleCompares(x, y) { + x = +x; + y = +y; + if (x < y) return +x; + return +y; + } function z() { } -- cgit v1.2.3