Skip to content

Commit

Permalink
Merge pull request #1988 from mgreter/bugfix/function-call-invocation
Browse files Browse the repository at this point in the history
Fix issues with `call` function invocation
  • Loading branch information
mgreter committed Apr 11, 2016
2 parents 77eb142 + ab0e8e9 commit d53c063
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/eval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ namespace Sass {

std::string name(Util::normalize_underscores(c->name()));
std::string full_name(name + "[f]");
Arguments* args = c->arguments();
Arguments* args = SASS_MEMORY_NEW(ctx.mem, Arguments, *c->arguments());

// handle call here if valid arg
// otherwise we eval arguments to early
Expand Down Expand Up @@ -1376,6 +1376,7 @@ namespace Sass {
Expression* Eval::operator()(Arguments* a)
{
Arguments* aa = SASS_MEMORY_NEW(ctx.mem, Arguments, a->pstate());
if (a->length() == 0) return aa;
for (size_t i = 0, L = a->length(); i < L; ++i) {
Argument* arg = static_cast<Argument*>((*a)[i]->perform(this));
if (!(arg->is_rest_argument() || arg->is_keyword_argument())) {
Expand Down

0 comments on commit d53c063

Please sign in to comment.