scala-cli icon indicating copy to clipboard operation
scala-cli copied to clipboard

--js silently ignored for repl

Open prolativ opened this issue 3 years ago • 1 comments

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.

prolativ avatar Mar 16 '22 11:03 prolativ

Came here to report this, but I see somebody beat me to it :-)

SethTisue avatar Jul 15 '22 01:07 SethTisue