`NaN` is not special-cased in AS3.
This commit is contained in:
parent
34b3bbae63
commit
34ab8c8ce6
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue