File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src-js/src/main/kotlin/calculator Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,17 @@ package calculator
55
66import kotlin.js.JsName
77
8+ @JsName(" log" )
89actual fun log (msg : String ) = console.log(msg)
910
1011@JsName(" root" )
11- fun main (args : Array <String >) {
12+ fun root (args : Array <String >) {
1213 Calculator .runExperiments()
1314}
15+
16+ /* *
17+ * We don't actually need a main routine for JS-KT. However, if we do write
18+ * one, it will execute immediately on loading the module.
19+ */
20+ // @JsName("main")
21+ // fun main(args: Array<String>) {}
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ const kotlin = require('kotlin');
22
33import * as srcJsOutput from '../src-js/build/js/index' ;
44
5+ console . log ( `\nsrcJsOutput (output of ./src-js/*):` ) ;
56console . log ( srcJsOutput ) ;
You can’t perform that action at this time.
0 commit comments