summaryrefslogtreecommitdiff
path: root/test/wasm2asm.asserts.js
diff options
context:
space:
mode:
authorWill Cohen <willcohen@users.noreply.github.com>2023-01-04 18:02:14 -0500
committerGitHub <noreply@github.com>2023-01-04 15:02:14 -0800
commitf92350d2949934c0e0ce4a27ec8b799ac2a85e45 (patch)
tree5cedc4d7a7ede518efb572b4278ffb8ef8102cb6 /test/wasm2asm.asserts.js
parentfb434f95de125bbd1c3f145880d32395d86cfef2 (diff)
downloadbinaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.tar.gz
binaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.tar.bz2
binaryen-f92350d2949934c0e0ce4a27ec8b799ac2a85e45.zip
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.
Diffstat (limited to 'test/wasm2asm.asserts.js')
-rw-r--r--test/wasm2asm.asserts.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/test/wasm2asm.asserts.js b/test/wasm2asm.asserts.js
index e920a2b20..71515c4c3 100644
--- a/test/wasm2asm.asserts.js
+++ b/test/wasm2asm.asserts.js
@@ -18,8 +18,6 @@ function asmFunc(global, env, buffer) {
var Math_ceil = global.Math.ceil;
var Math_sqrt = global.Math.sqrt;
var abort = env.abort;
- var nan = global.NaN;
- var infinity = global.Infinity;
var i64toi32_i32$HIGH_BITS = 0;
function $0() {
@@ -54,8 +52,6 @@ function asmFunc(global, env, buffer) {
var HEAP32 = new Int32Array(__array_buffer);
var HEAPF32 = new Float32Array(__array_buffer);
var HEAPF64 = new Float64Array(__array_buffer);
- var nan = NaN;
- var infinity = Infinity;
;
function f32Equal(a, b) {