Index: src/preparser-api.cc |
diff --git a/src/preparser-api.cc b/src/preparser-api.cc |
index 6e8556aa14b4b9309e2a091d7540f872e1e012ba..03c2d6708fe2719d231ec3eb65eb380eda026df2 100644 |
--- a/src/preparser-api.cc |
+++ b/src/preparser-api.cc |
@@ -191,11 +191,9 @@ PreParserData Preparse(UnicodeInputStream* input, size_t max_stack) { |
internal::Scanner scanner(&unicode_cache); |
scanner.Initialize(&buffer); |
internal::CompleteParserRecorder recorder; |
- preparser::PreParser::PreParseResult result = |
- preparser::PreParser::PreParseProgram(&scanner, |
- &recorder, |
- internal::kAllowLazy, |
- stack_limit); |
+ preparser::PreParser preparser(&scanner, &recorder, stack_limit); |
+ preparser.set_allow_lazy(true); |
+ preparser::PreParser::PreParseResult result = preparser.PreParseProgram(); |
if (result == preparser::PreParser::kPreParseStackOverflow) { |
return PreParserData::StackOverflow(); |
} |