summaryrefslogtreecommitdiffstats
path: root/js/src/jsarray.cpp
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2019-06-30 01:52:56 -0400
committerGaming4JC <g4jc@hyperbola.info>2019-07-18 22:38:38 -0400
commitf39640128068a3816a9bfc28d619f8fa8f161435 (patch)
tree020f127bb9c9a79f708d16038288480d0bfe9e26 /js/src/jsarray.cpp
parent7252778e37cb5f1528999d8051a1ffad500e59ab (diff)
downloadUXP-f39640128068a3816a9bfc28d619f8fa8f161435.tar
UXP-f39640128068a3816a9bfc28d619f8fa8f161435.tar.gz
UXP-f39640128068a3816a9bfc28d619f8fa8f161435.tar.lz
UXP-f39640128068a3816a9bfc28d619f8fa8f161435.tar.xz
UXP-f39640128068a3816a9bfc28d619f8fa8f161435.zip
Fix a thread assertion in NewCopiedArrayTryUseGroup
Diffstat (limited to 'js/src/jsarray.cpp')
-rw-r--r--js/src/jsarray.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/jsarray.cpp b/js/src/jsarray.cpp
index 8bbcac320..33ff67f36 100644
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -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);