I extented my Common.kt file like this, to include...
# javascript
m
I extented my Common.kt file like this, to include your code
Copy code
external fun require(module:String) : dynamic

external class Object {
    companion object {
        fun getOwnProperties(o: dynamic) : Array<String>
    }
}
and I'm using it like this
Copy code
fun (err : dynamic, info : dynamic) {
        if (err) {
            println(err)
            return;
        }
        for (key in Object.getOwnProperties(info)) {
            println(key)
        }
    }
I get this error at runtime
Copy code
tmp$ = Object.getOwnProperties(info);
                  ^

TypeError: Object.getOwnProperties is not a function