Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
deps: update ChakraCore to chakra-core/ChakraCore@79ef8eda34
Browse files Browse the repository at this point in the history
[1.8>1.9] [MERGE #4528 @leirocks] Fix bad assertion in DirectSetItemAtRange for OP_MEMSET

Merge pull request #4528 from leirocks:op_memset

Reviewed-By: chakrabot <chakrabot@users.noreply.github.com>
  • Loading branch information
leirocks authored and chakrabot committed Jan 17, 2018
1 parent a5da8cc commit 859e314
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions deps/chakrashim/core/lib/Runtime/Library/JavascriptArray.inl
Original file line number Diff line number Diff line change
Expand Up @@ -1160,23 +1160,15 @@ SECOND_PASS:
}
else if (startIndex == 0 && length > this->length && (head == EmptySegment || length > head->size))
{

Recycler *recycler = GetRecycler();
this->length = length;
this->EnsureHead<T>();
SparseArraySegmentBase* current = nullptr;

Assert(head->size < length);

current = SparseArraySegment<T>::AllocateSegment(recycler, 0, length, (SparseArraySegment<T> *)nullptr);
SparseArraySegmentBase* current = SparseArraySegment<T>::AllocateSegment(recycler, 0, length, (SparseArraySegment<T> *)nullptr);
this->SetHeadAndLastUsedSegment(current);
this->length = length;

Assert(!HasSegmentMap());

SetHasNoMissingValues(true);

CopyValueToSegmentBuferNoCheck(((Js::SparseArraySegment<T>*)current)->elements, length, newValue);
this->SetLastUsedSegment(current);
}
else
{
Expand Down

0 comments on commit 859e314

Please sign in to comment.