diff options
| author | Henry <mail@henrygressmann.de> | 2026-05-04 20:27:17 +0200 |
|---|---|---|
| committer | Henry <mail@henrygressmann.de> | 2026-05-04 20:27:17 +0200 |
| commit | f328442c4d30bcd3916fb7c064e903539b641c04 (patch) | |
| tree | 5e8d71da200772b59b85e639441325266b1819fe /crates/cli/src/wast_runner.rs | |
| parent | c0b356b025ef93eb3c1378c203858c3a7486f398 (diff) | |
chore: cleanup
Signed-off-by: Henry <mail@henrygressmann.de>
Diffstat (limited to 'crates/cli/src/wast_runner.rs')
| -rw-r--r-- | crates/cli/src/wast_runner.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/crates/cli/src/wast_runner.rs b/crates/cli/src/wast_runner.rs index 9170dce..0634e76 100644 --- a/crates/cli/src/wast_runner.rs +++ b/crates/cli/src/wast_runner.rs @@ -1,11 +1,9 @@ use std::collections::{BTreeMap, HashMap}; use std::fmt::{Display, Formatter}; use std::fs::canonicalize; +use std::panic::{self, AssertUnwindSafe}; use std::path::PathBuf; -use std::{ - panic::{self, AssertUnwindSafe}, - time::Duration, -}; +use std::time::Duration; use eyre::{Context, Result, bail, eyre}; use log::{debug, error}; @@ -833,9 +831,11 @@ impl FloatToken for wast::token::F32 { fn bits(&self) -> Bits { Bits::U32(self.bits) } + fn canonical_nan() -> WasmValue { WasmValue::F32(f32::NAN) } + fn arithmetic_nan() -> WasmValue { WasmValue::F32(f32::NAN) } @@ -845,9 +845,11 @@ impl FloatToken for wast::token::F64 { fn bits(&self) -> Bits { Bits::U64(self.bits) } + fn canonical_nan() -> WasmValue { WasmValue::F64(f64::NAN) } + fn arithmetic_nan() -> WasmValue { WasmValue::F64(f64::NAN) } |
