File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -835,7 +835,7 @@ namespace Sass {
835
835
836
836
std::string name (Util::normalize_underscores (c->name ()));
837
837
std::string full_name (name + " [f]" );
838
- Arguments* args = c->arguments ();
838
+ Arguments* args = SASS_MEMORY_NEW (ctx. mem , Arguments, * c->arguments () );
839
839
840
840
// handle call here if valid arg
841
841
// otherwise we eval arguments to early
@@ -1376,6 +1376,7 @@ namespace Sass {
1376
1376
Expression* Eval::operator ()(Arguments* a)
1377
1377
{
1378
1378
Arguments* aa = SASS_MEMORY_NEW (ctx.mem , Arguments, a->pstate ());
1379
+ if (a->length () == 0 ) return aa;
1379
1380
for (size_t i = 0 , L = a->length (); i < L; ++i) {
1380
1381
Argument* arg = static_cast <Argument*>((*a)[i]->perform (this ));
1381
1382
if (!(arg->is_rest_argument () || arg->is_keyword_argument ())) {
You can’t perform that action at this time.
0 commit comments