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

Commit 48c8fbd

Browse files
author
Aaron Leung
committed
Making sure each list item gets evaluated in an @each directive.
1 parent 441d23d commit 48c8fbd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

eval_apply.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ namespace Sass {
835835
Environment each_env; // re-use this env for each iteration
836836
each_env.link(bindings);
837837
for (size_t j = 0, T = list.size(); j < T; ++j) {
838+
list[j].should_eval() = true;
838839
each_env.current_frame[iter_var.token()] = eval(list[j], Node(), bindings, ctx.function_env, new_Node, ctx);
839840
Node v(eval_function(name, each_body, each_env, new_Node, ctx));
840841
if (v.is_null()) continue;

0 commit comments

Comments
 (0)