-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make tests for
@JSExportTopLevel
independent from @JSExport
.
Previously, for top-level exported Scala classes and objects, we used `@JSExport`ed "witness" members to test the results. Because of that, the tests for `@JSExportTopLevel` were dependent on `@JSExport`. That would be problematic for WebAssembly, which is going to support `@JSExportTopLevel` but not `@JSExport`. We now use a `WitnessInterface` trait instead, to access the witness fields/methods without requiring `@JSExport` members.
- Loading branch information
Showing
1 changed file
with
34 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters