Skip to content

Commit 16ebbd2

Browse files
Merge pull request #9153 from FabioPinheiro/upgrade_scalajs_1_1_0
Upgrade to Scala.js 1.1.0.
2 parents 36587be + f1b4c22 commit 16ebbd2

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
@@ -1531,9 +1531,9 @@ class JSCodeGen()(implicit ctx: Context) {
15311531
case jstpe.LongType =>
15321532
js.BinaryOp(js.BinaryOp.Long_-, js.LongLiteral(0), genArg)
15331533
case jstpe.FloatType =>
1534-
js.BinaryOp(js.BinaryOp.Float_-, js.FloatLiteral(0.0f), genArg)
1534+
js.BinaryOp(js.BinaryOp.Float_*, js.FloatLiteral(-1.0f), genArg)
15351535
case jstpe.DoubleType =>
1536-
js.BinaryOp(js.BinaryOp.Double_-, js.DoubleLiteral(0), genArg)
1536+
js.BinaryOp(js.BinaryOp.Double_*, js.DoubleLiteral(-1.0), genArg)
15371537
}
15381538

15391539
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)