File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -179,12 +179,12 @@ namespace Sass {
179
179
}
180
180
181
181
if (!result) result = a->value ()->accept (this );
182
-
182
+ if (result) result = withoutSlash (result);
183
183
184
184
if (auto frame = compiler.getCurrentScope ()) {
185
185
a->vidx (frame->setModVar (
186
186
a->variable (), a->ns (),
187
- withoutSlash ( result) ,
187
+ result,
188
188
a->is_default (),
189
189
a->pstate ()));
190
190
}
Original file line number Diff line number Diff line change @@ -645,14 +645,17 @@ namespace Sass {
645
645
646
646
// Collect positional args by evaluating input arguments
647
647
positional.reserve (arguments->positional ().size () + 1 );
648
- for (const auto & arg : arguments->positional ()) {
649
- positional.emplace_back (withoutSlash (arg->accept (this )));
648
+ for (const auto & arg : arguments->positional ())
649
+ {
650
+ ValueObj result (arg->accept (this ));
651
+ positional.emplace_back (withoutSlash (result));
650
652
}
651
653
652
654
// Collect named args by evaluating input arguments
653
655
for (const auto & kv : arguments->named ()) {
656
+ ValueObj result (kv.second ->accept (this ));
654
657
named.insert (std::make_pair (kv.first ,
655
- withoutSlash (kv. second -> accept ( this ) )));
658
+ withoutSlash (result )));
656
659
}
657
660
658
661
// Abort if we don't take any restargs
@@ -663,7 +666,8 @@ namespace Sass {
663
666
}
664
667
665
668
// Evaluate the variable expression (
666
- ValueObj rest = withoutSlash (arguments->restArg ()->accept (this ));
669
+ ValueObj result = arguments->restArg ()->accept (this );
670
+ ValueObj rest = withoutSlash (result);
667
671
668
672
SassSeparator separator = SASS_UNDEF;
669
673
You can’t perform that action at this time.
0 commit comments