Skip to content

Commit

Permalink
Fix equality checks for CalculationOperation (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Nov 16, 2021
1 parent 55cb4fd commit 681bbb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 1.43.5

* Fix a bug where calculations with different operators were incorrectly
considered equal.

### JS API

* Print more detailed JS stack traces. This is mostly useful for the Sass team's
Expand Down
1 change: 1 addition & 0 deletions lib/src/value/calculation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ class CalculationOperation {

bool operator ==(Object other) =>
other is CalculationOperation &&
operator == other.operator &&
left == other.left &&
right == other.right;

Expand Down

0 comments on commit 681bbb2

Please sign in to comment.