File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -1469,8 +1469,17 @@ namespace Sass {
1469
1469
1470
1470
Arguments* args = new (ctx.mem ) Arguments (pstate);
1471
1471
for (size_t i = 0 , L = arglist->length (); i < L; ++i) {
1472
- Argument* arg = new (ctx.mem ) Argument (pstate, arglist->value_at_index (i));
1473
- *args << arg;
1472
+ Expression* expr = arglist->value_at_index (i);
1473
+ if (arglist->is_arglist ()) {
1474
+ Argument* arg = static_cast <Argument*>(expr);
1475
+ *args << new (ctx.mem ) Argument (pstate,
1476
+ expr,
1477
+ " " ,
1478
+ arg->is_rest_argument (),
1479
+ arg->is_keyword_argument ());
1480
+ } else {
1481
+ *args << new (ctx.mem ) Argument (pstate, expr);
1482
+ }
1474
1483
}
1475
1484
Function_Call* func = new (ctx.mem ) Function_Call (pstate, name, args);
1476
1485
Contextualize contextualize (ctx, &d_env, backtrace);
You can’t perform that action at this time.
0 commit comments