`NaN` is not special-cased in AS3.

This commit is contained in:
David Wendt 2020-03-08 23:12:15 -04:00
parent 34b3bbae63
commit 34ab8c8ce6
1 changed files with 1 additions and 3 deletions

View File

@ -119,9 +119,7 @@ impl PartialEq for Value<'_> {
_ => false,
},
Value::Number(value) => match other {
Value::Number(other_value) => {
(value == other_value) || (value.is_nan() && other_value.is_nan())
}
Value::Number(other_value) => value == other_value,
_ => false,
},
Value::String(value) => match other {