Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

sourceMaps non-string option while sourceComments='map' causes crash #374

Merged
merged 2 commits into from
Jul 25, 2014
Merged

sourceMaps non-string option while sourceComments='map' causes crash #374

merged 2 commits into from
Jul 25, 2014

Conversation

rvagg
Copy link
Contributor

@rvagg rvagg commented Jul 25, 2014

Finally fixes #337, the bug is caused by the grunt-sass library setting sourceComments to map while leaving sourceMaps as undefined. The way I chose to fix this was to set sourceMaps to '' as that seems to be an acceptable way to pass this option to libsass (tbh I don't know what it ends up doing with it but I can confirm it works and I think the tests might also be doing this).

Also, I changed the binary loader section and removed the obj.target directory as the buillds end up being linked into the directory above that and it should be the proper place to load it from. I also added the Debug directory as that's where they end upwith --debug and I needed that to get some lldb line number magic out of this crash.

@andrew
Copy link
Contributor

andrew commented Jul 25, 2014

Thanks for picking this @rvagg, I've been away travelling and haven't had much time to check it out.

Will try to get a release out next week.

andrew pushed a commit that referenced this pull request Jul 25, 2014
sourceMaps non-string option while sourceComments='map' causes crash
@andrew andrew merged commit e548434 into sass:master Jul 25, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compiling via Grunt-sass results in: Assertion failed: (val->IsString()) error
2 participants