Fix type-of() with a function.

This commit is contained in:
Natalie Weizenbaum 2017-01-14 15:14:57 -08:00
parent 05acf01e58
commit 28efbe1df3
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,8 @@
* Forbid functions named "and", "or", and "not".
* Fix `type-of()` with a function.
## 1.0.0-alpha.8
* Add the `content-exists()` function.

View File

@ -887,6 +887,7 @@ void defineCoreFunctions(Environment environment) {
if (value is SassMap) return new SassString("map");
if (value is SassNull) return new SassString("null");
if (value is SassNumber) return new SassString("number");
if (value is SassFunction) return new SassString("function");
assert(value is SassString);
return new SassString("string");
});