diff options
author | Mats Larsen <me@supergrecko.com> | 2021-07-06 16:42:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-06 09:42:21 -0500 |
commit | f3be74183de288f4ae360f059ebc3a56a3bd1d29 (patch) | |
tree | 40bee0269f302984ed6f5fd60834113a1833f79b /lib/compilers/kotlin.js | |
parent | 70cb841dafcd1ea04b02bc1ebbe80fa6bd32a3da (diff) | |
download | compiler-explorer-f3be74183de288f4ae360f059ebc3a56a3bd1d29.tar.gz compiler-explorer-f3be74183de288f4ae360f059ebc3a56a3bd1d29.zip |
Fix execution for JVM compilers (#2767)
Diffstat (limited to 'lib/compilers/kotlin.js')
-rw-r--r-- | lib/compilers/kotlin.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compilers/kotlin.js b/lib/compilers/kotlin.js index 030cdcfd5..fca91f634 100644 --- a/lib/compilers/kotlin.js +++ b/lib/compilers/kotlin.js @@ -46,7 +46,7 @@ export class KotlinCompiler extends JavaCompiler { filterUserOptions(userOptions) { // filter options without extra arguments - userOptions = userOptions.filter(option => + userOptions = (userOptions || []).filter(option => option !== '-script' && option !== '-progressive' && !option.startsWith('-Xjavac')); const oneArgForbiddenList = new Set([ |