-
Notifications
You must be signed in to change notification settings - Fork 467
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
Arglist passed as single argument for varargs improperly getting destructured #1645
Comments
@mgreter I think your example works as expected because you're only passing in one argument to |
yep, saw it too, thought nobody had seen it yet, already removed it ... need to do more tests. |
This PR add specs for sass/libsass#1645
I just ran into this issue today, and wonder if it's the same thing? $function: 'hsl';
$hue: 360;
$value: (30%, 40%);
.test {
// This doesn't work in libsass (works in ruby sass)
background-color: call($function, $hue, $value...);
// This works great
$call: join(($function, $hue), $value);
color: call($call...);
}
// ERROR: required parameter $lightness is missing in call to function hsl on line 7 at column 21 |
Quiet possibly. I'm working on this fix. It'll be in the next release.
|
Spec added sass/sass-spec#621 |
This PR activates specs for sass/libsass#1645
I have a passing branch for this. It's not pretty but it works for now. I've decided to extend this issue encompass "sassdash test suite passing". All sassdash tests that aren't segfaulting are passing. I think most of the segfaults are due to #1813 so I think we're close. |
Fixes sass#1645 Spec sass/sass-spec#663
Fixes sass#1645 Spec sass/sass-spec#663
Fixes sass#1645 Spec sass/sass-spec#663
I know it's been a while @mirisuzanne but the usecase you reported last month is also covered by this patch. |
@xzyfer I'm seeing this error again, but only when I call core Sass functions. With custom functions, it works great. Here's a demo showing it successful with a custom function, and again with the hack listed above – but failing (in libsass only) if you unquote the call with a core function: https://www.sassmeister.com/gist/cd09d650328b8f486a5d3b31c3009225 |
@mirisuzanne could you please create a separate issue and if possible a spec test. Looking at the code and inspecting the AST I believe this specific case has never worked in any previous libsass versions. Thanks. |
Naming issues is hard.
TEST:
EXPECTED:
ACTUAL: (LibSass 3.3.1)
The text was updated successfully, but these errors were encountered: