mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user