Skip to content

Conversation

@WojciechMazur
Copy link
Contributor

Backports #22797 to Scala 3.7.0-RC2

… it's a primitive.

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.
@WojciechMazur WojciechMazur merged commit d97c30a into scala:release-3.7.0 Mar 14, 2025
29 checks passed
@WojciechMazur WojciechMazur deleted the backport-3.7.0/22797 branch March 14, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants