From f92350d2949934c0e0ce4a27ec8b799ac2a85e45 Mon Sep 17 00:00:00 2001 From: Will Cohen Date: Wed, 4 Jan 2023 18:02:14 -0500 Subject: wasm2js: Stop emitting nan and infinity (#5391) As noted in #4739, legacy language emitting nan and infinity exists, with the observation that it can be removed once asm.js is no longer used and global NaN is available. This commit removes that asm.js-specific code accordingly. --- test/wasm2js/nested-selects.2asm.js | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/wasm2js/nested-selects.2asm.js') diff --git a/test/wasm2js/nested-selects.2asm.js b/test/wasm2js/nested-selects.2asm.js index c6c48fa69..3cbb81b46 100644 --- a/test/wasm2js/nested-selects.2asm.js +++ b/test/wasm2js/nested-selects.2asm.js @@ -10,8 +10,6 @@ function asmFunc(imports) { var Math_ceil = Math.ceil; var Math_trunc = Math.trunc; var Math_sqrt = Math.sqrt; - var nan = NaN; - var infinity = Infinity; function $1($0) { $0 = $0 | 0; return (($0 | 0) < (0 | 0) ? -1 : ($0 | 0) > (0 | 0) ? 1 : 0) | 0; -- cgit v1.2.3