Skip to content

Commit abf884e

Browse files
committed
chore: rename JavaScriptArgs function
1 parent 5516681 commit abf884e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/grammars/javascript.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,11 @@ const babel = path.join(
1212
)
1313
const babelConfig = path.join(__dirname, "babel.config.js")
1414

15-
const args = ({ filepath }) => {
15+
function JavaScriptArgs({ filepath }) {
1616
const cmd = `'${babel}' --filename '${filepath}' --config-file ${babelConfig} < '${filepath}'| node`
1717
return GrammarUtils.formatArgs(cmd)
1818
}
19+
1920
const Dart = {
2021
"Selection Based": {
2122
command: "dart",
@@ -36,10 +37,10 @@ const JavaScript = {
3637
args: (context) => {
3738
const code = context.getCode()
3839
const filepath = GrammarUtils.createTempFileWithCode(code, ".js")
39-
return args({ filepath })
40+
return JavaScriptArgs({ filepath })
4041
},
4142
},
42-
"File Based": { command: GrammarUtils.command, args },
43+
"File Based": { command: GrammarUtils.command, args: JavaScriptArgs },
4344
}
4445
const Babel = JavaScript
4546
const JSX = JavaScript

0 commit comments

Comments
 (0)