Skip to content

Commit 76de155

Browse files
RlAutotuneFbsourceMemory Botfacebook-github-bot
authored andcommitted
folly::dynamic::push_back (dynamic.h)
Reviewed By: tmikov Differential Revision: D103664557
1 parent 52d87f9 commit 76de155

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

packages/react-native/ReactCommon/jsi/jsi/JSIDynamic.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ folly::dynamic dynamicFromValue(
169169
// the stack.
170170
Array array = top.obj.getArray(runtime);
171171
size_t arraySize = array.size(runtime);
172+
top.dyn->reserve(arraySize);
172173
for (size_t i = 0; i < arraySize; ++i) {
173174
top.dyn->push_back(nullptr);
174175
}

0 commit comments

Comments
 (0)