Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 6f4dc275c1f636222258f228bf6d0dc423385a3f..36acfaf95870e828b9d1dc816a19fc67fd89e7c6 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -2718,9 +2718,7 @@ void BytecodeGenerator::VisitCountOperation(CountOperation* expr) { |
} |
// Convert old value into a number. |
- if (!is_strong(language_mode())) { |
- builder()->CastAccumulatorToNumber(); |
- } |
+ builder()->CastAccumulatorToNumber(); |
// Save result for postfix expressions. |
if (is_postfix) { |