Index: src/parsing/parser.h |
diff --git a/src/parsing/parser.h b/src/parsing/parser.h |
index 3ae2619a6562f24f56666df021e81b440f14eba8..aa2d0e87cedd1df11a6e7e2387be095ea5a25405 100644 |
--- a/src/parsing/parser.h |
+++ b/src/parsing/parser.h |
@@ -371,6 +371,12 @@ class ParserTraits { |
return expression->AsVariableProxy()->raw_name(); |
} |
+ bool IsDirectEvalCall(Expression* expression) { |
+ if (!expression->IsCall()) return false; |
+ expression = expression->AsCall()->expression(); |
+ return IsIdentifier(expression) && IsEval(AsIdentifier(expression)); |
+ } |
+ |
static bool IsBoilerplateProperty(ObjectLiteral::Property* property) { |
return ObjectLiteral::IsBoilerplateProperty(property); |
} |