| Index: src/full-codegen.h
|
| diff --git a/src/full-codegen.h b/src/full-codegen.h
|
| index 081192a541665ed06d4d4d858e5ea34561d80ac4..913250268025db0ab0b6cfea80478dda22d159ef 100644
|
| --- a/src/full-codegen.h
|
| +++ b/src/full-codegen.h
|
| @@ -577,9 +577,11 @@ 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_strict_mode() { return function()->strict_mode(); }
|
| + bool is_strict_mode() {
|
| + return strict_mode_flag() == kStrictMode;
|
| + }
|
| StrictModeFlag strict_mode_flag() {
|
| - return is_strict_mode() ? kStrictMode : kNonStrictMode;
|
| + return function()->strict_mode_flag();
|
| }
|
| FunctionLiteral* function() { return info_->function(); }
|
| Scope* scope() { return scope_; }
|
|
|