Skip to content

Commit f3c7be5

Browse files
authored
Make meta.apply() an AsyncBuiltInCallable (#2152)
Closes #2151
1 parent 1fc740d commit f3c7be5

File tree

6 files changed

+12
-5
lines changed

6 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
* Provide official releases for musl LibC and for Android.
1313

14+
* Don't crash when running `meta.apply()` in asynchronous mode.
15+
1416
### JS API
1517

1618
* Fix a bug where certain exceptions could produce `SourceSpan`s that didn't

lib/src/visitor/async_evaluate.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,8 @@ final class _EvaluateVisitor
545545
namesInErrors: true);
546546
_assertConfigurationIsEmpty(configuration, nameInError: true);
547547
}, url: "sass:meta"),
548-
BuiltInCallable.mixin("apply", r"$mixin, $args...", (arguments) async {
548+
AsyncBuiltInCallable.mixin("apply", r"$mixin, $args...",
549+
(arguments) async {
549550
var mixin = arguments[0];
550551
var args = arguments[1] as SassArgumentList;
551552

lib/src/visitor/evaluate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_evaluate.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 58ef9912c6a9d9cfe9c3f5d991f625ab1a627e7a
8+
// Checksum: 71dcf1747eb45036d3c1b5b57bd0cd5dbe6b8e14
99
//
1010
// ignore_for_file: unused_import
1111

pkg/sass_api/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 9.2.6
2+
3+
* No user-visible changes.
4+
15
## 9.2.5
26

37
* No user-visible changes.

pkg/sass_api/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ name: sass_api
22
# Note: Every time we add a new Sass AST node, we need to bump the *major*
33
# version because it's a breaking change for anyone who's implementing the
44
# visitor interface(s).
5-
version: 9.2.5
5+
version: 9.2.6
66
description: Additional APIs for Dart Sass.
77
homepage: https://github.com/sass/dart-sass
88

99
environment:
1010
sdk: ">=3.0.0 <4.0.0"
1111

1212
dependencies:
13-
sass: 1.69.5
13+
sass: 1.69.6
1414

1515
dev_dependencies:
1616
dartdoc: ^6.0.0

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: sass
2-
version: 1.69.6-dev
2+
version: 1.69.6
33
description: A Sass implementation in Dart.
44
homepage: https://github.com/sass/dart-sass
55

0 commit comments

Comments
 (0)