mirror of
https://github.com/danog/dart-sass.git
synced 2024-12-03 10:08:01 +01:00
Fix feature-exists().
This commit is contained in:
parent
594787a0ba
commit
54e87dce7f
@ -812,7 +812,7 @@ void defineCoreFunctions(Environment environment) {
|
|||||||
|
|
||||||
environment.defineFunction("feature-exists", r"$feature", (arguments) {
|
environment.defineFunction("feature-exists", r"$feature", (arguments) {
|
||||||
var feature = arguments[0].assertString("feature");
|
var feature = arguments[0].assertString("feature");
|
||||||
return new SassBoolean(_features.contains(feature));
|
return new SassBoolean(_features.contains(feature.text));
|
||||||
});
|
});
|
||||||
|
|
||||||
environment.defineFunction("variable-exists", r"$name", (arguments) {
|
environment.defineFunction("variable-exists", r"$name", (arguments) {
|
||||||
|
Loading…
Reference in New Issue
Block a user