Skip to content

Backport "Fix #22794: Emit the definition of Arrays.newArray even though it's a primitive." to 3.7.0 #22801

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

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