We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5792d1f commit e599a33Copy full SHA for e599a33
compiler/src/dotty/tools/backend/sjs/GenSJSIR.scala
@@ -8,8 +8,9 @@ import Phases._
8
class GenSJSIR extends Phase {
9
def phaseName: String = "genSJSIR"
10
11
- def run(implicit ctx: Context): Unit = {
12
- if (ctx.settings.scalajs.value)
13
- new JSCodeGen().run()
14
- }
+ override def isRunnable(implicit ctx: Context): Boolean =
+ super.isRunnable && ctx.settings.scalajs.value
+
+ def run(implicit ctx: Context): Unit =
15
+ new JSCodeGen().run()
16
}
0 commit comments