JS lib: export Kotlin object when it possible.
It allows use kotlin.js on node.js without modifications.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = Kotlin;
|
||||
}
|
||||
@@ -18,3 +18,10 @@
|
||||
|
||||
// from QUnit
|
||||
function ok() {}
|
||||
|
||||
// node.js
|
||||
var module = {};
|
||||
var process = {};
|
||||
|
||||
// common
|
||||
var console = {};
|
||||
|
||||
Reference in New Issue
Block a user