mirror of
https://github.com/status-im/react-native.git
synced 2025-02-22 22:28:09 +00:00
Summary:
Commit d9c2cdae41
brings compatibility with Node 10, but replaced allocating buffer incorrectly.
dulmandakh made two comments and shows how to do it based on NodeJS documentation https://nodejs.org/api/buffer.html#buffer_new_buffer_size
This PR just fixes that commit.
Pull Request resolved: https://github.com/facebook/react-native/pull/22379
Differential Revision: D13166867
Pulled By: hramos
fbshipit-source-id: 207528739889c044021a4b97ef94c33d56de3e89