Index: src/full-codegen.h |
diff --git a/src/full-codegen.h b/src/full-codegen.h |
index b85c8c642785a5a9bca9a7e2f2354f2ff517c3de..655e560eb53f143dee011cb2495e935e67d7ceef 100644 |
--- a/src/full-codegen.h |
+++ b/src/full-codegen.h |
@@ -531,8 +531,9 @@ class FullCodeGenerator: public AstVisitor { |
Handle<Script> script() { return info_->script(); } |
bool is_eval() { return info_->is_eval(); } |
+ bool is_strict() { return function()->strict_mode(); } |
StrictModeFlag strict_mode_flag() { |
- return function()->strict_mode() ? kStrictMode : kNonStrictMode; |
+ return is_strict() ? kStrictMode : kNonStrictMode; |
} |
FunctionLiteral* function() { return info_->function(); } |
Scope* scope() { return info_->scope(); } |