react-native/local-cli
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
..
__mocks__ react-native-github: set path mock to posix by default 2018-09-24 06:32:24 -07:00
bundle Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
core RN: Missing Copyright Headers 2018-10-31 01:37:26 -07:00
dependencies Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
eject Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
generator Fix allocating Buffer in early commit (#22379) 2018-11-22 00:50:03 -08:00
info Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
init Prettify remaining unprettified files (#21327) 2018-09-25 19:50:08 -07:00
install Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
library Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
link Fix `no-shadow` eslint warning & remove var (#22124) 2018-11-05 14:02:02 -08:00
logAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
logIOS Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
runAndroid Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
runIOS lint autofixes 2018-11-02 12:44:59 -07:00
server JS: Switch from `new Buffer` to `Buffer.from` 2018-11-15 12:13:05 -08:00
templates Flow v0.86.0 in xplat/js 2018-11-16 10:43:16 -08:00
upgrade Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
util Pass the maxWorkers config param correctly to Metro 2018-09-18 08:19:38 -07:00
.npmignore npmignore: ignore tests and fixtures 2018-02-27 08:42:14 -08:00
cli.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
cliEntry.js Remove undefined value on init cli command (#22045) 2018-10-31 21:12:31 -07:00
commands.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
setup_env.bat Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
setup_env.sh Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
wrong-react-native.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00