Index: src/full-codegen.h |
diff --git a/src/full-codegen.h b/src/full-codegen.h |
index d9090a8dc830137448b9bb4e6ac38f1240316909..92d868455e8621ecb639066679789ae6f708938f 100644 |
--- a/src/full-codegen.h |
+++ b/src/full-codegen.h |
@@ -607,9 +607,9 @@ class FullCodeGenerator: public AstVisitor { |
Handle<Script> script() { return info_->script(); } |
bool is_eval() { return info_->is_eval(); } |
bool is_native() { return info_->is_native(); } |
- bool is_classic_mode() { return language_mode() == CLASSIC_MODE; } |
+ bool is_sloppy_mode() { return language_mode() == SLOPPY_MODE; } |
StrictModeFlag strict_mode() { |
- return is_classic_mode() ? kNonStrictMode : kStrictMode; |
+ return is_sloppy_mode() ? kSloppyMode : kStrictMode; |
} |
LanguageMode language_mode() { return function()->language_mode(); } |
FunctionLiteral* function() { return info_->function(); } |