Commit c5287a9e authored by Ryan VanderMeulen's avatar Ryan VanderMeulen
Browse files

Backed out changeset 1f239a458a10 (bug 1497246) for bustage.

parent 6e8c253e
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2461,9 +2461,6 @@ auto nsTArray_Impl<E, Alloc>::ReplaceElementsAtInternal(index_type aStart,
  if (MOZ_UNLIKELY(aStart > Length())) {
    InvalidArrayIndex_CRASH(aStart, Length());
  }
  if (MOZ_UNLIKELY(aCount > Length() - aStart)) {
    mozilla::detail::InvalidArrayIndex_CRASH(aStart + aCount, Length());
  }

  // Adjust memory allocation up-front to catch errors.
  if (!ActualAlloc::Successful(this->template EnsureCapacity<ActualAlloc>(