Index: src/runtime/runtime-strings.cc |
diff --git a/src/runtime/runtime-strings.cc b/src/runtime/runtime-strings.cc |
index 03b8a08afa09bea3a5936e67eb9ca1fed08abc4f..3654968a3b199c765bc6dfd52ac5664aa55e85ee 100644 |
--- a/src/runtime/runtime-strings.cc |
+++ b/src/runtime/runtime-strings.cc |
@@ -642,13 +642,6 @@ RUNTIME_FUNCTION(Runtime_SparseJoinWithSeparator) { |
RUNTIME_ASSERT(elements_length <= elements_array->elements()->length()); |
RUNTIME_ASSERT((elements_length & 1) == 0); // Even length. |
FixedArray* elements = FixedArray::cast(elements_array->elements()); |
- for (int i = 0; i < elements_length; i += 2) { |
- RUNTIME_ASSERT(elements->get(i)->IsNumber()); |
- CONVERT_NUMBER_CHECKED(uint32_t, position, Uint32, elements->get(i)); |
- RUNTIME_ASSERT(position < array_length); |
- RUNTIME_ASSERT(elements->get(i + 1)->IsString()); |
- } |
- |
{ |
DisallowHeapAllocation no_gc; |
for (int i = 0; i < elements_length; i += 2) { |