Skip to content

Commit f1b4c22

Browse files
committed
Upgrade to Scala.js 1.1.0.
JSCodeGen was changed according to scala-js/scala-js#4040
1 parent 345c8bc commit f1b4c22

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/backend/sjs/JSCodeGen.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,9 +1532,9 @@ class JSCodeGen()(implicit ctx: Context) {
15321532
case jstpe.LongType =>
15331533
js.BinaryOp(js.BinaryOp.Long_-, js.LongLiteral(0), genArg)
15341534
case jstpe.FloatType =>
1535-
js.BinaryOp(js.BinaryOp.Float_-, js.FloatLiteral(0.0f), genArg)
1535+
js.BinaryOp(js.BinaryOp.Float_*, js.FloatLiteral(-1.0f), genArg)
15361536
case jstpe.DoubleType =>
1537-
js.BinaryOp(js.BinaryOp.Double_-, js.DoubleLiteral(0), genArg)
1537+
js.BinaryOp(js.BinaryOp.Double_*, js.DoubleLiteral(-1.0), genArg)
15381538
}
15391539

15401540
case NOT =>

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// e.g. addSbtPlugin("com.github.mpeltonen" % "sbt-idea" % "1.1.0")
44

5-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.0.0")
5+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.1.0")
66

77
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.6")
88

0 commit comments

Comments
 (0)