Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index ed6886fd69bfdfa1c6e0f5eebf60add62b418565..33d5cabad7ebb0bb90bb91093b621ddeca16423f 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -2143,10 +2143,8 @@ void FullCodeGenerator::EmitResolvePossiblyDirectEval(ResolveEvalFlag flag, |
// Push the strict mode flag. In harmony mode every eval call |
// is a strict mode eval call. |
- StrictModeFlag strict_mode = strict_mode_flag(); |
- if (FLAG_harmony_block_scoping) { |
- strict_mode = kStrictMode; |
- } |
+ StrictModeFlag strict_mode = |
+ FLAG_harmony_scoping ? kStrictMode : strict_mode_flag(); |
__ push(Immediate(Smi::FromInt(strict_mode))); |
__ CallRuntime(flag == SKIP_CONTEXT_LOOKUP |