Fix a thread assertion in NewCopiedArrayTryUseGroup

This commit is contained in:
Gaming4JC 2019-06-30 01:52:56 -04:00 committed by Roy Tam
commit 5b4cd90516
3 changed files with 3 additions and 3 deletions

View file

@ -3643,7 +3643,7 @@ js::NewCopiedArrayTryUseGroup(ExclusiveContext* cx, HandleObjectGroup group,
if (!obj)
return nullptr;
DenseElementResult result = obj->setOrExtendDenseElements(cx->asJSContext(), 0, vp, length, updateTypes);
DenseElementResult result = obj->setOrExtendDenseElements(cx, 0, vp, length, updateTypes);
if (result == DenseElementResult::Failure)
return nullptr;
MOZ_ASSERT(result == DenseElementResult::Success);