diff --git a/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java b/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java index cd9519c909e..e82405b7893 100644 --- a/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java +++ b/compiler/cli/src/org/jetbrains/kotlin/cli/js/K2JSCompiler.java @@ -190,8 +190,8 @@ public class K2JSCompiler extends CLICompiler { } File outputPostfixFile = null; - if (arguments.getOutputPrefix() != null) { - outputPostfixFile = new File(arguments.getOutputPrefix()); + if (arguments.getOutputPostfix() != null) { + outputPostfixFile = new File(arguments.getOutputPostfix()); if (!outputPostfixFile.exists()) { messageCollector.report(ERROR, "Output postfix file '" + arguments.getOutputPostfix() + "' not found", null); return ExitCode.COMPILATION_ERROR;