Commit 09458571 by Aaron Leung

Checking for unbound variable references.

parent f8309b5a
......@@ -205,6 +205,7 @@ namespace Sass {
} break;
case Node::variable: {
if (!env.query(expr.content.token)) eval_error("reference to unbound variable " + expr.content.token.to_string(), expr.line_number, expr.file_name);
return env[expr.content.token];
} break;
......
......@@ -30,12 +30,12 @@ div[hux ~= "hello"] {
}
$y: hey;
//$y: hey;
@mixin foo($x) {
foofoo: $x $y;
}
div {
@include foo(blah, $x: ho, goo);
@include foo();
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment