Skip to content

Commit 7df70e6

Browse files
committed
Fix small source-map regression
1 parent 8265b6b commit 7df70e6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

debugger.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,8 @@ inline void debug_ast(AST_Node* node, string ind = "", Env* env = 0)
344344
cerr << " (" << pstate_source_position(node) << ")";
345345
cerr << " [name: " << block->name() << "] ";
346346
cerr << " [type: " << (block->type() == Sass::Definition::Type::MIXIN ? "Mixin " : "Function ") << "] ";
347-
cerr << " [signature: " << block->signature() << "] ";
347+
// this seems to lead to segfaults some times?
348+
// cerr << " [signature: " << block->signature() << "] ";
348349
cerr << " [native: " << block->native_function() << "] ";
349350
cerr << " " << block->tabs() << endl;
350351
debug_ast(block->parameters(), ind + " params: ", env);

parser.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1619,8 +1619,9 @@ namespace Sass {
16191619
{
16201620
lex< identifier >();
16211621
string name(lexed);
1622+
ParserState call_pos = pstate;
16221623
Arguments* args = parse_arguments(name == "url");
1623-
return new (ctx.mem) Function_Call(pstate, name, args);
1624+
return new (ctx.mem) Function_Call(call_pos, name, args);
16241625
}
16251626

16261627
Function_Call_Schema* Parser::parse_function_call_schema()

0 commit comments

Comments
 (0)