Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression in the call function with a map argument #1133

Closed
xzyfer opened this issue Apr 25, 2015 · 0 comments · Fixed by #1135
Closed

Regression in the call function with a map argument #1133

xzyfer opened this issue Apr 25, 2015 · 0 comments · Fixed by #1135

Comments

@xzyfer
Copy link
Contributor

xzyfer commented Apr 25, 2015

When call is passed a maps as the $args param it is being auto expanded. This should only happen if the map value is followed by ... i.e. call('foo', $my-map...) vs call('foo', $my-map). Originally reported #1128 (comment)

@function foo($map) {
  @return $map;
}

@debug(call(foo, (this: is, my: map));)

Ruby Sass + Libsass 3.1.0

test.scss:20 DEBUG: (this: is, my: map)

Libsass 3.2.0-beta.6

Error: function foo has no parameter named $this
        on line 20 of test.scss
>> @debug(call(foo, (this: is, my: map)));
   ------------------------------------^

Specs added sass/sass-spec#342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant