File tree 2 files changed +5
-18
lines changed
src/dotty/tools/backend/sjs
2 files changed +5
-18
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
7
7
8
8
addSbtPlugin(" org.scalastyle" %% " scalastyle-sbt-plugin" % " 0.8.0" )
9
9
10
- addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.7 " )
10
+ addSbtPlugin(" org.scala-js" % " sbt-scalajs" % " 0.6.8 " )
Original file line number Diff line number Diff line change @@ -557,21 +557,7 @@ class JSCodeGen()(implicit ctx: Context) {
557
557
}
558
558
}
559
559
560
- /* Work around https://github.com/scala-js/scala-js/issues/2259
561
- * TODO Remove this when we upgrade to Scala.js 0.6.8.
562
- */
563
- val methodDef1 = if (! sym.owner.is(Trait )) {
564
- methodDef
565
- } else {
566
- val workaroundBody = js.Block (
567
- js.Apply (js.ClassOf (jstpe.ClassType (encodeClassFullName(sym.owner))),
568
- js.Ident (" isPrimitive__Z" ), Nil )(jstpe.BooleanType ),
569
- methodDef.body)
570
- methodDef.copy(body = workaroundBody)(
571
- methodDef.optimizerHints, methodDef.hash)
572
- }
573
-
574
- Some (methodDef1)
560
+ Some (methodDef)
575
561
}
576
562
}
577
563
}
@@ -2386,8 +2372,9 @@ class JSCodeGen()(implicit ctx: Context) {
2386
2372
2387
2373
/** Gen JS code to load the JavaScript global scope. */
2388
2374
private def genLoadJSGlobal ()(implicit pos : Position ): js.Tree = {
2389
- // TODO Change this when upgrading to Scala.js 0.6.8
2390
- js.JSBracketSelect (js.JSEnvInfo (), js.StringLiteral (" global" ))
2375
+ js.JSBracketSelect (
2376
+ js.JSBracketSelect (js.JSLinkingInfo (), js.StringLiteral (" envInfo" )),
2377
+ js.StringLiteral (" global" ))
2391
2378
}
2392
2379
2393
2380
/** Generate a Class[_] value (e.g. coming from classOf[T]) */
You can’t perform that action at this time.
0 commit comments