diff --git a/sdk/lib/_internal/wasm/lib/double.dart b/sdk/lib/_internal/wasm/lib/double.dart index 4e592e6c445..31b8a9cd2c2 100644 --- a/sdk/lib/_internal/wasm/lib/double.dart +++ b/sdk/lib/_internal/wasm/lib/double.dart @@ -137,6 +137,9 @@ class _BoxedDouble extends double { bool operator <=(num other) => this <= other.toDouble(); // Intrinsic <= bool get isNegative { + if (isNaN) { + return false; + } int bits = doubleToIntBits(this); return (bits & _signMask) != 0; }