react-native-macos/local-cli/generator
Radovan Šmitala 02a3517d0b Fix allocating Buffer in early commit (#22379)
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
2018-11-22 00:50:03 -08:00
..
copyProjectTemplateAndReplace.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
printRunInstructions.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
promptSync.js Fix allocating Buffer in early commit (#22379) 2018-11-22 00:50:03 -08:00
templates.js Prettify remaining unprettified files (#21327) 2018-09-25 19:50:08 -07:00