1

This question addresses the flip side of another question: Can JSweet viably port Java libraries for use in cross-built Scala.js projects?

Imagine making a Scala.js facade for a JavaScript library, then compiling the JavaScript library to the JVM. Then, by wrapping the JVM version in a way that conforms to the same interface as the Scala.js facade,the result would be a Scala.js Cross-Built library that could serve the JS and JVM communities, as well as the Scala.js community.

Have you ever used Rhino or Nashorn to make a JavaScript library available to Java or Scala?

How did you do it?

If you haven't done it, do you have any ideas about whether, or how it could be done?

Ben McKenneby
  • 481
  • 4
  • 15

0 Answers0