Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

Commit 57a2f62

Browse files
author
Aaron Leung
committed
Signalling an error when a style has an empty RHS.
1 parent 29289bb commit 57a2f62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eval_apply.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ namespace Sass {
168168
else if (rhs.is_schema() || rhs.should_eval()) {
169169
expr[1] = eval(rhs, prefix, env, f_env, new_Node, ctx, bt);
170170
}
171+
if (expr[1].type() == Node::list && expr[1].empty()) {
172+
throw_eval_error(bt, "the value of a style property may not be empty", expr[1].path(), expr[1].line());
173+
}
171174
} break;
172175

173176
case Node::extend_directive: {

0 commit comments

Comments
 (0)