Fix equality checks for CalculationOperation (#1556)

This commit is contained in:
Christophe Coevoet 2021-11-16 22:05:29 +01:00 committed by GitHub
parent 55cb4fd509
commit 681bbb2a0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
## 1.43.5 ## 1.43.5
* Fix a bug where calculations with different operators were incorrectly
considered equal.
### JS API ### JS API
* Print more detailed JS stack traces. This is mostly useful for the Sass team's * Print more detailed JS stack traces. This is mostly useful for the Sass team's

View File

@ -337,6 +337,7 @@ class CalculationOperation {
bool operator ==(Object other) => bool operator ==(Object other) =>
other is CalculationOperation && other is CalculationOperation &&
operator == other.operator &&
left == other.left && left == other.left &&
right == other.right; right == other.right;