Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 4903928456dd540cce2cfbdae6f17e3c058b731e..6ef9063302d4137dc6ab5e52436ff31254db069d 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -1630,7 +1630,7 @@ class VariableProxy FINAL : public Expression { |
DECLARE_NODE_TYPE(VariableProxy) |
bool IsValidReferenceExpression() const OVERRIDE { |
- return !is_resolved() || var()->IsValidReference(); |
+ return !is_this() && (!is_resolved() || var()->IsValidReference()); |
wingo
2015/02/04 10:02:13
So it used to be that we would eagerly resolve "th
aperez
2015/02/04 21:00:42
Acknowledged.
Also, I am going to write it as:
|
} |
bool IsArguments() const { return is_resolved() && var()->is_arguments(); } |