gaetan
03/21/2017, 10:17 AMmelatonina
03/21/2017, 1:59 PMmain
to take an array of strings for it to be detected but then the generate code passes an empty array? fun main()
is not used as entry point, fun main(args : Array<String>)
is used as entry point but args
will always be an empty array. I'm using moduleKind = "commonjs"
.gaetan
03/21/2017, 2:08 PMgaetan
03/22/2017, 1:25 PMclass A
fun allTests(){
println("${1 is Int}") //true
println("${A() is A}") //true
println("${A::class.isInstance(A())}") //true
println("${Int::class.isInstance(1)}") // Uncaught TypeError: Cannot read property '$metadata$' of undefined
}
melatonina
03/22/2017, 5:28 PMgetInfo
from module ytdl-core
. I have some problems when calling it but I'd like to ask you another question. I don't want to pollute the global namespace with module-specific function, so I used this syntax to declare the whole module and its function(s). @JsModule("ytdl-core")
external class Ytdl {
companion object {
fun getInfo(name: String, options : dynamic, callback : (dynamic, dynamic) -> Unit) : Unit
}
}
Now I can read all javascript properties of Ytdl
with Object.getOwnPropertyNames()
(and getInfo
in among them) but I don't know how to refer to `Ytdl.getInfo`: both Object.getOwnPropertyNames(Ytdl.getInfo)
and Object.getOwnPropertyNames(Ytdl::getInfo)
fail to compile. The first is assumed to be a function call (lacking its arguments), the second causes a "Unresolved reference: getInfo". Am I missing something?vsazel
03/22/2017, 9:45 PMbulwinkel
03/26/2017, 10:47 PMspierce7
03/29/2017, 4:32 AMspierce7
03/29/2017, 8:35 PMNicholas Bilyk
04/02/2017, 4:41 PMorangy
04/03/2017, 8:35 AMnfrankel
04/03/2017, 9:35 AMdanfma
04/03/2017, 3:28 PMpabl0rg
04/03/2017, 8:03 PMfunctionaldude
04/06/2017, 4:57 PMTristan Caron
04/07/2017, 6:41 AMnimtiazm
04/08/2017, 9:54 PMnimtiazm
04/09/2017, 9:00 AMpabl0rg
04/11/2017, 5:52 AMuli
04/11/2017, 6:58 AMfalse
, with JVM backend it is true
pabl0rg
04/13/2017, 12:47 PMlifk
04/13/2017, 8:17 PMspierce7
04/13/2017, 11:21 PMDalinar
04/14/2017, 1:20 AMgaetan
04/14/2017, 9:07 AMgaetan
04/17/2017, 8:54 AMString.toInt(radix:Int)
but didn’t find the opposite.gbaldeck
04/19/2017, 4:50 PMChris Miller
04/24/2017, 3:10 PM:frontend:webpack-config UP-TO-DATE
:frontend:webpack-bundle
module.js:472
throw err;
^
Error: Cannot find module 'C:\programming\fullstack\frontend\build\node_modules\webpack\bin\webpack.js'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:420:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:535:3
:frontend:webpack-bundle FAILED
when running gradlew build
or gradlew bundle
spierce7
04/25/2017, 6:21 AMcy
04/25/2017, 7:29 AMcy
04/25/2017, 7:29 AMspierce7
04/27/2017, 4:47 AM