Skip to content

Commit 89a486e

Browse files
hzooFacebook Github Bot 5
authored andcommitted
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 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
1 parent d0356fb commit 89a486e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

local-cli/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function run() {
7171
printUsage();
7272
}
7373

74-
const setupEnvScript = /^win/.test(process.platform)
74+
var setupEnvScript = /^win/.test(process.platform)
7575
? 'setup_env.bat'
7676
: 'setup_env.sh';
7777
childProcess.execFileSync(path.join(__dirname, setupEnvScript));

0 commit comments

Comments
 (0)