| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f84f548 commit f06622c
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,11 +21,6 @@ scriptFiles.forEach(function(s) { | |||
| 21 | 21 | script += process.binding('natives')[s] + '\n'; | |
| 22 | 22 | }); | |
| 23 | 23 | ||
| 24 | - // eslint-disable-next-line no-unused-vars | ||
| 25 | - function printErr(err) { | ||
| 26 | - console.error(err); | ||
| 27 | - } | ||
| 28 | - | ||
| 29 | 24 | const tickArguments = []; | |
| 30 | 25 | if (process.platform === 'darwin') { | |
| 31 | 26 | tickArguments.push('--mac'); | |
@@ -36,6 +31,7 @@ tickArguments.push.apply(tickArguments, process.argv.slice(1)); | |||
| 36 | 31 | script = `(function(module, require) { | |
| 37 | 32 | arguments = ${JSON.stringify(tickArguments)}; | |
| 38 | 33 | function write (s) { process.stdout.write(s) } | |
| 34 | + function printErr(err) { console.error(err); } | ||
| 39 | 35 | ${script} | |
| 40 | 36 | })`; | |
| 41 | 37 | vm.runInThisContext(script)(module, require); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments