Fix: cli.js - use var instead of const

Summary:Explain the **motivation** for making this change. What existing problem does the pull request solve?

Fixes https://github.com/facebook/react-native/issues/6203

> SyntaxError: Use of const in strict mode.

- The rest of the file isn't using es6 anyway and babel-register is run on the file it's included in

**Test plan (required)**

Shouldn't have issues replacing it since it's used right after one time.
Closes https://github.com/facebook/react-native/pull/6329

Differential Revision: D3017697

Pulled By: martinbigio

fb-gh-sync-id: 42ee011d032a4bae3409b8e7793c9eb508719964
shipit-source-id: 42ee011d032a4bae3409b8e7793c9eb508719964
This commit is contained in:
Henry Zhu 2016-03-06 18:55:44 -08:00 committed by Facebook Github Bot 5
parent d0356fbe9f
commit 89a486eb3b
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ function run() {
printUsage();
}
const setupEnvScript = /^win/.test(process.platform)
var setupEnvScript = /^win/.test(process.platform)
? 'setup_env.bat'
: 'setup_env.sh';
childProcess.execFileSync(path.join(__dirname, setupEnvScript));