Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index e5c0c35b9c58e8dfd499f0701f0d8dc86630e67e..b5c5fc5e719181cd283573cea7d95acd7279dbb2 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2029,10 +2029,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(Smi::FromInt(strict_mode)); |
__ CallRuntime(flag == SKIP_CONTEXT_LOOKUP |