folly::dynamic::push_back (dynamic.h) (#56676)

Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56676

Reviewed By: tmikov

Differential Revision: D103664557

fbshipit-source-id: bcc53150cf357b025918b4dab9f19603284d602b
This commit is contained in:
generatedunixname1389709262956747 authored and meta-codesync[bot] committed 2026-05-04 16:27:53 -07:00
1 parent a25e0fdddf
commit 52ff392596
1 file changed
+1
@@ -169,6 +169,7 @@ folly::dynamic dynamicFromValue(
// the stack.
Array array = top.obj.getArray(runtime);
size_t arraySize = array.size(runtime);
top.dyn->reserve(arraySize);
for (size_t i = 0; i < arraySize; ++i) {
top.dyn->push_back(nullptr);
}