Index: src/full-codegen/full-codegen.h |
diff --git a/src/full-codegen/full-codegen.h b/src/full-codegen/full-codegen.h |
index ac3022af194859d7a3f8d9bf9186409ee2276cfc..5185d06a4b7cc4a5802bb5e294e4841cc5f9a93e 100644 |
--- a/src/full-codegen/full-codegen.h |
+++ b/src/full-codegen/full-codegen.h |
@@ -705,7 +705,7 @@ class FullCodeGenerator: public AstVisitor { |
Handle<Script> script() { return info_->script(); } |
bool is_eval() { return info_->is_eval(); } |
bool is_native() { return info_->is_native(); } |
- LanguageMode language_mode() { return literal()->language_mode(); } |
+ LanguageMode language_mode() { return scope()->language_mode(); } |
bool has_simple_parameters() { return info_->has_simple_parameters(); } |
FunctionLiteral* literal() const { return info_->literal(); } |
Scope* scope() { return scope_; } |