Skip to content

Commit

Permalink
Fix argument names in str-slice errors (#1303)
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed May 6, 2021
1 parent 574e763 commit be2d3e8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.32.13

* Use the proper parameter names in error messages about `string.slice`

## 1.32.12

* Fix a bug that disallowed more than one module from extending the same
Expand Down
4 changes: 2 additions & 2 deletions lib/src/functions/string.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ final _slice =
var string = arguments[0].assertString("string");
var start = arguments[1].assertNumber("start-at");
var end = arguments[2].assertNumber("end-at");
start.assertNoUnits("start");
end.assertNoUnits("end");
start.assertNoUnits("start-at");
end.assertNoUnits("end-at");

var lengthInCodepoints = string.sassLength;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: sass
version: 1.32.12
version: 1.32.13-dev
description: A Sass implementation in Dart.
author: Sass Team
homepage: https://github.com/sass/dart-sass
Expand Down

0 comments on commit be2d3e8

Please sign in to comment.