We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a25e0fd commit 52ff392Copy full SHA for 52ff392
1 file changed
packages/react-native/ReactCommon/jsi/jsi/JSIDynamic.cpp
@@ -169,6 +169,7 @@ folly::dynamic dynamicFromValue(
169
// the stack.
170
Array array = top.obj.getArray(runtime);
171
size_t arraySize = array.size(runtime);
172
+ top.dyn->reserve(arraySize);
173
for (size_t i = 0; i < arraySize; ++i) {
174
top.dyn->push_back(nullptr);
175
}
0 commit comments