Commit 596538b
authored
Until 3.6.x, we used the user-space definition of `Arrays.newArray` in
Scala.js. We changed it to a primitve in
2852168, to match the behavior of the
JVM backend.
However, that had the side effect of not emitting its definition at all,
like other primitives. For backward binary compat reasons, we do need
that definition.
We specifically make an exception for that method, which is now emitted,
even though it is otherwise treated as a primitive.
File tree
5 files changed
+14
-1
lines changed- compiler/src/dotty/tools/backend/sjs
- sbt-test/scalajs/backward-compat
- project
- src/test/scala
5 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
1560 | | - | |
| 1560 | + | |
1561 | 1561 | | |
1562 | 1562 | | |
1563 | 1563 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments