Skip to content

Commit

Permalink
JS backend: fix using old Kotlin Javascript stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Nedzelsky authored and bashor committed Dec 16, 2014
1 parent 2484954 commit 0a53543
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import java.util.List;

import static org.jetbrains.jet.utils.LibraryUtils.isKotlinJavascriptLibrary;
import static org.jetbrains.jet.utils.LibraryUtils.isKotlinJavascriptStdLibrary;

public class LibrarySourcesConfig extends Config {
@NotNull
Expand Down Expand Up @@ -139,7 +140,10 @@ private boolean checkLibFilesAndReportErrors(@NotNull Function1<String, Unit> re
return true;
}
else {
if (isKotlinJavascriptLibrary(filePath)) {
if (isKotlinJavascriptStdLibrary(filePath)) {
actualModuleName = STDLIB_JS_MODULE_NAME;
}
else if (isKotlinJavascriptLibrary(filePath)) {
actualModuleName = LibraryUtils.getKotlinJsModuleName(filePath);
}
else if (actualModuleName == null) {
Expand Down

0 comments on commit 0a53543

Please sign in to comment.