mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
02a3517d0b
Summary: Commit https://github.com/facebook/react-native/commit/d9c2cdae41f41d879351516eeadd1fb608210242 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