Skip to content

Commit 660977c

Browse files
smartersjrd
authored andcommitted
Revive the Scala.js backend.
This partially reverts 06a3d47 to bring back Dotty.js from the dead. - Scala.js was upgraded to 1.0.0-M6, and the back-end was updated to reflect changes that have happened in the Scala 2 back-end since the initial implementation of the Dotty.js back-end. - The backend was initially removed because of #1574, I don't see why GetClass has a requirement on FunctionalInterfaces, so I just removed it ¯\_(ツ)_/¯ - The Scala.js backend explodes when extending a Scala 2 trait because of the way LinkScala2Impls transforms supercalls to these traits. Luckily, we don't need to extend js.JSApp anymore to make a Hello World :P. The following command works, and is added to the CI: sbt sjsSandbox/run This generally remains a WIP. There are still a lot of Scala.js-specific features which are not supported, notably exports and non-native JS classes.
1 parent 4385494 commit 660977c

21 files changed

+697
-720
lines changed

.drone.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ pipeline:
3737
- ./project/scripts/sbt ";dotty-bootstrapped/compile ;dotty-bootstrapped/test"
3838
- ./project/scripts/bootstrapCmdTests
3939

40+
test_sjs:
41+
group: test
42+
image: lampepfl/dotty:2018-10-01
43+
commands:
44+
- cp -R . /tmp/3/ && cd /tmp/3/
45+
- ./project/scripts/sbt ";sjsSandbox/run"
46+
4047
test_sbt:
4148
group: test
4249
image: lampepfl/dotty:2018-10-01

build.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ val scalap = Build.scalap
2020
val dist = Build.dist
2121
val `dist-bootstrapped` = Build.`dist-bootstrapped`
2222

23+
val sjsSandbox = Build.sjsSandbox
24+
2325
val `sbt-dotty` = Build.`sbt-dotty`
2426
val `vscode-dotty` = Build.`vscode-dotty`
2527

compiler/sjs/backend/sjs/JSPrimitives.scala

Lines changed: 0 additions & 118 deletions
This file was deleted.

0 commit comments

Comments
 (0)