K2JS: fix KT-5639 Exception in kotlin-js when directory is given instead of output file

#KT-5639 Fixed
This commit is contained in:
Michael Nedzelsky
2014-12-11 21:02:49 +03:00
parent 0b54221223
commit 12ff5de013
5 changed files with 28 additions and 2 deletions
@@ -0,0 +1,4 @@
$TESTDATA_DIR$/simple2js.kt
-no-stdlib
-output
$TESTDATA_DIR$
@@ -0,0 +1,2 @@
ERROR: Cannot open output file 'compiler/testData/cli/js': is a directory
COMPILATION_ERROR