Skip to content

Commit

Permalink
Fix: cli.js - use var instead of const
Browse files Browse the repository at this point in the history
Summary:Explain the **motivation** for making this change. What existing problem does the pull request solve?

Fixes facebook#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 facebook#6329

Differential Revision: D3017697

Pulled By: martinbigio

fb-gh-sync-id: 42ee011d032a4bae3409b8e7793c9eb508719964
shipit-source-id: 42ee011d032a4bae3409b8e7793c9eb508719964
  • Loading branch information
hzoo authored and Facebook Github Bot 5 committed Mar 7, 2016
1 parent d0356fb commit 89a486e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion local-cli/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 89a486e

Please sign in to comment.