Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 8a0ea19b62caf3a70e1d929fa1b698cd2d07fd49..7e0f0fdfbcda8ed644ddd18ceaf0c4288d52b44b 100644 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -102,6 +102,11 @@ bool CompilationInfo::has_shared_info() const { |
} |
+bool CompilationInfo::has_context() const { |
+ return parse_info_ && !parse_info_->context().is_null(); |
+} |
+ |
+ |
CompilationInfo::CompilationInfo(ParseInfo* parse_info) |
: CompilationInfo(parse_info, nullptr, BASE, parse_info->isolate(), |
parse_info->zone()) { |