Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

sjrd
Copy link
Member

@sjrd sjrd commented Aug 28, 2025

Previously, we had the following compile error:

Reflect.scala:109:87: Passing an explicit array value to a Scala varargs method is deprecated (since 2.13.0) and will result in a defensive copy; Use the more efficient non-copying ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
(c._1.toArray, (args: Array[Any]) => c._2.asInstanceOf[JSFunctionVarArgs].apply(args: _*))
                                                                                ^

See #5227 for a CI with the full (nightly) build, where we have reverted to the old codegen that actually calls the method changed in this PR.

Previously, we had the following compile error:

    Reflect.scala:109:87: Passing an explicit array value to a Scala varargs method is deprecated (since 2.13.0) and will result in a defensive copy; Use the more efficient non-copying ArraySeq.unsafeWrapArray or an explicit toIndexedSeq call
    (c._1.toArray, (args: Array[Any]) => c._2.asInstanceOf[JSFunctionVarArgs].apply(args: _*))
                                                                                    ^
@gzm0 gzm0 merged commit 7e7b3ad into scala-js:main Aug 30, 2025
3 checks passed
@sjrd sjrd deleted the fix-reflect-compat-api-on-old-2.13-versions branch August 30, 2025 15:53
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