JS lib: export Kotlin object when it possible.

It allows use kotlin.js on node.js without modifications.
This commit is contained in:
Zalim Bashorov
2014-10-13 21:25:00 +04:00
parent 55c19a632a
commit f0078b5e0f
3 changed files with 17 additions and 2 deletions
@@ -0,0 +1,3 @@
if (typeof module !== 'undefined' && module.exports) {
module.exports = Kotlin;
}
+7
View File
@@ -18,3 +18,10 @@
// from QUnit
function ok() {}
// node.js
var module = {};
var process = {};
// common
var console = {};