Include argument names when reporting range errors

Closes #771
This commit is contained in:
Natalie Weizenbaum 2019-07-25 08:14:17 +01:00
parent 1d8cec8477
commit 8d5e3d9a67
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,7 @@
## 1.22.9
* Include argument names when reporting range errors.
## 1.22.8
### JavaScript API

View File

@ -209,7 +209,8 @@ class SassNumber extends Value implements ext.SassNumber {
var result = fuzzyCheckRange(value, min, max);
if (result != null) return result;
throw _exception(
"Expected $this to be within $min$unitString and $max$unitString.");
"Expected $this to be within $min$unitString and $max$unitString.",
name);
}
bool hasUnit(String unit) =>

View File

@ -1,5 +1,5 @@
name: sass
version: 1.22.8
version: 1.22.9-dev
description: A Sass implementation in Dart.
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/sass/dart-sass