Index: src/parsing/parse-info.cc |
diff --git a/src/parsing/parse-info.cc b/src/parsing/parse-info.cc |
index ce8d67f5e96c5767d197f807d3f963a409c13bb5..8fda29be0f757aa1af83314fbbaca7252fbf95fd 100644 |
--- a/src/parsing/parse-info.cc |
+++ b/src/parsing/parse-info.cc |
@@ -66,6 +66,8 @@ ParseInfo::ParseInfo(Zone* zone, Handle<SharedFunctionInfo> shared) |
ParseInfo::ParseInfo(Zone* zone, Handle<Script> script) : ParseInfo(zone) { |
isolate_ = script->GetIsolate(); |
+ set_allow_lazy_parsing(String::cast(script->source())->length() > |
+ FLAG_min_preparse_length); |
set_toplevel(); |
set_hash_seed(isolate_->heap()->HashSeed()); |
set_stack_limit(isolate_->stack_guard()->real_climit()); |