@@ -68,15 +68,15 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
6868
6969
7070 // setup common arguments for the two kotlinc calls
71- private fun commonK2JSArgs () = commonArguments(K2JSCompilerArguments ()) { args ->
71+ private fun jsArgs () = commonArguments(K2JSCompilerArguments ()) { args ->
7272 // the compiler should never look for stdlib or reflect in the
7373 // kotlinHome directory (which is null anyway). We will put them
7474 // in the classpath manually if they're needed
7575 args.noStdlib = true
7676
7777 args.moduleKind = " commonjs"
7878 args.outputFile = File (outputDir, outputFileName).absolutePath
79- args.sourceMapBaseDirs = commonClasspaths ().joinToString(separator = File .pathSeparator)
79+ args.sourceMapBaseDirs = jsClasspath ().joinToString(separator = File .pathSeparator)
8080 args.libraries = listOfNotNull(kotlinStdLibJsJar).joinToString(separator = " :" )
8181
8282 args.irProduceKlibDir = irProduceKlibDir
@@ -114,7 +114,7 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
114114 */
115115 withSystemProperty(" idea.use.native.fs.for.win" , " false" ) {
116116 // step 1: compile Kotlin files
117- return makeResult(compileKotlin(sourceFiles, K2JSCompiler (), commonK2JSArgs ()))
117+ return makeResult(compileKotlin(sourceFiles, K2JSCompiler (), jsArgs ()))
118118 }
119119 }
120120
@@ -127,7 +127,7 @@ class KotlinJsCompilation : AbstractKotlinCompilation<K2JSCompilerArguments>() {
127127 return Result (exitCode, messages)
128128 }
129129
130- private fun commonClasspaths () = mutableListOf<File >().apply {
130+ private fun jsClasspath () = mutableListOf<File >().apply {
131131 addAll(classpaths)
132132 addAll(listOfNotNull(kotlinStdLibCommonJar, kotlinStdLibJsJar))
133133
0 commit comments