Index: src/preparser.h |
diff --git a/src/preparser.h b/src/preparser.h |
index 34295c71f297bce5cdca1fc81aa80252298304e5..7a68e835ff2870e5397c2be37f7f17acb4fed00f 100644 |
--- a/src/preparser.h |
+++ b/src/preparser.h |
@@ -1624,9 +1624,13 @@ class PreParserTraits { |
static void CheckAssigningFunctionLiteralToProperty( |
PreParserExpression left, PreParserExpression right) {} |
- // PreParser doesn't need to keep track of eval calls. |
static void CheckPossibleEvalCall(PreParserExpression expression, |
- Scope* scope) {} |
+ Scope* scope) { |
+ if (IsIdentifier(expression) && IsEval(AsIdentifier(expression))) { |
+ scope->DeclarationScope()->RecordEvalCall(); |
+ scope->RecordEvalCall(); |
+ } |
+ } |
static PreParserExpression MarkExpressionAsAssigned( |
PreParserExpression expression) { |