Index: src/parser.h |
diff --git a/src/parser.h b/src/parser.h |
index dd8e600f9d788f824e29d5e7ff1086d10a161a08..d3c24d1a58191ed981005a3bfb99e5214196f42f 100644 |
--- a/src/parser.h |
+++ b/src/parser.h |
@@ -418,7 +418,12 @@ class Parser : public ParserBase { |
// Parses the source code represented by the compilation info and sets its |
// function literal. Returns false (and deallocates any allocated AST |
// nodes) if parsing failed. |
- static bool Parse(CompilationInfo* info) { return Parser(info).Parse(); } |
+ static bool Parse(CompilationInfo* info, |
+ bool allow_lazy = false) { |
+ Parser parser(info); |
+ parser.set_allow_lazy(allow_lazy); |
+ return parser.Parse(); |
+ } |
bool Parse(); |
private: |