diff --git a/build.xml b/build.xml index 4ae7170df05..e5430268c02 100644 --- a/build.xml +++ b/build.xml @@ -219,6 +219,7 @@ + @@ -256,7 +257,7 @@ warning="${warningLevel}" output="${kotlin-home}/lib/kotlin.js" > - + @@ -267,7 +268,11 @@ - + + + + + diff --git a/js/js.translator/testData/export_Kotlin_if_possible.js b/js/js.translator/testData/export_Kotlin_if_possible.js new file mode 100644 index 00000000000..c5e6266980d --- /dev/null +++ b/js/js.translator/testData/export_Kotlin_if_possible.js @@ -0,0 +1,3 @@ +if (typeof module !== 'undefined' && module.exports) { + module.exports = Kotlin; +} \ No newline at end of file diff --git a/js/js.translator/testData/externs.js b/js/js.translator/testData/externs.js index 06f2f460c4b..6374e17e882 100644 --- a/js/js.translator/testData/externs.js +++ b/js/js.translator/testData/externs.js @@ -18,3 +18,10 @@ // from QUnit function ok() {} + +// node.js +var module = {}; +var process = {}; + +// common +var console = {};