Skip to content

Commit

Permalink
Merge branch 'master' into patch-5
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstrodl committed Jan 28, 2021
2 parents 5e4756a + 934bdd5 commit 196992e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

* Fix Electron support when `nodeIntegration` is disabled.

### Dart API

* All range checks for `SassColor` constructors now throw `RangeError`s with
`start` and `end` set.

## 1.32.5

* **Potentially breaking bug fix:** When using `@for` with numbers that have
Expand Down
3 changes: 2 additions & 1 deletion lib/src/util/number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,6 @@ num fuzzyCheckRange(num number, num min, num max) {
num fuzzyAssertRange(num number, num min, num max, [String name]) {
var result = fuzzyCheckRange(number, min, max);
if (result != null) return result;
throw RangeError.value(number, name, "must be between $min and $max.");
throw RangeError.range(
number, min, max, name, "must be between $min and $max");
}

0 comments on commit 196992e

Please sign in to comment.