Commit 09458571 by Aaron Leung

Checking for unbound variable references.

parent f8309b5a
...@@ -205,6 +205,7 @@ namespace Sass { ...@@ -205,6 +205,7 @@ namespace Sass {
} break; } break;
case Node::variable: { 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]; return env[expr.content.token];
} break; } break;
......
...@@ -30,12 +30,12 @@ div[hux ~= "hello"] { ...@@ -30,12 +30,12 @@ div[hux ~= "hello"] {
} }
$y: hey; //$y: hey;
@mixin foo($x) { @mixin foo($x) {
foofoo: $x $y; foofoo: $x $y;
} }
div { 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