Skip to content

Commit e231c6c

Browse files
committed
fix source map generation
source maps where not correctly generated for: .foo { position: absolute; asdfasdfasdfasdf-#{aaa} : 123; } this patch removes the ctx from To_String during eval as we don't need source map update_column calls during Eval
1 parent edff617 commit e231c6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ namespace Sass {
477477
Expression* Eval::operator()(String_Schema* s)
478478
{
479479
string acc;
480-
To_String to_string(&ctx);
480+
To_String to_string(0);
481481
for (size_t i = 0, L = s->length(); i < L; ++i) {
482482
string chunk((*s)[i]->perform(this)->perform(&to_string));
483483
if (((s->quote_mark() && is_quoted(chunk)) || !s->quote_mark()) && (*s)[i]->is_interpolant()) { // some redundancy in that test

0 commit comments

Comments
 (0)