Skip to content
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

Use portable-scala-reflect instead of the deprecated TestUtils. #178

Merged
merged 1 commit into from
Sep 15, 2018

Conversation

sjrd
Copy link
Collaborator

@sjrd sjrd commented Sep 13, 2018

TestUtils is deprecated in Scala.js 0.6.25. It has been replaced by the more general portable-scala-reflect library. This commit migrates to using the latter.

Since portable-scala-reflect does not support Scala Native yet, we need a bit more stuff in PlatformShims. These won't be necessary when Scala Native implements scala-native/scala-native#1279 and portable-scala-reflect starts supporting Scala Native.

The change in depth of stack traces that are ignored is due to the fact that TestUtils.loadModule was a macro that forced inlining of its implementation, whereas PlatformShims.loadModule does not do that.

@lihaoyi
Copy link
Member

lihaoyi commented Sep 14, 2018

@sjrd I have given you commit access to this repo, so feel free to merge this and other PRs yourself once things are green and you're happy with it

@sjrd sjrd force-pushed the use-portable-scala-reflect branch 2 times, most recently from 930d02b to f5d73c2 Compare September 14, 2018 13:41
`TestUtils` is deprecated in Scala.js 0.6.25. It has been replaced
by the more general portable-scala-reflect library. This commit
migrates to using the latter.

Since portable-scala-reflect does not support Scala Native yet, we
need a bit more stuff in `PlatformShims`. These won't be necessary
when Scala Native implements
scala-native/scala-native#1279 and
portable-scala-reflect starts supporting Scala Native.
@sjrd
Copy link
Collaborator Author

sjrd commented Sep 14, 2018

Rebased after #178 was merged. Should be good now.

@japgolly japgolly merged commit b599a7a into com-lihaoyi:master Sep 15, 2018
@japgolly
Copy link
Collaborator

Thanks

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.

3 participants