scala-cli
scala-cli copied to clipboard
--js silently ignored for repl
Version(s)
0.1.1
Describe the bug
Running scala-cli repl --js unexpectedly seems to have the same effect as just scala-cli repl.
To Reproduce
$ scala-cli repl --js
scala> classOf[String].getMethods.foreach(println)
This should not work as JVM reflection is not supported in scala.js
Expected behaviour
It would be nice to have a scala REPL running on js backend but I guess this might be quite difficult to implement. Alternatively --js option should be disallowed for scala-cli repl command to avoid confusion.
Came here to report this, but I see somebody beat me to it :-)