Commit 660977c
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
File tree
21 files changed
+697
-720
lines changed- compiler
- sjs/backend/sjs
- src/dotty/tools
- backend/sjs
- dotc
- config
- core
- transform
- test/dotty/tools/dotc
- project
- sandbox/scalajs/src
21 files changed
+697
-720
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
This file was deleted.
File renamed without changes.
0 commit comments