Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by chii on Tuesday December 15, 2015 @09:25PM
(#10741962)
As far as I can tell, you cannot eval arbitrary expressions. I used to use it like a REPL back then. That's what I would miss now with source map
Re:JSweet: A transpiler from Java to TypeScript/JavaScript
by cromwellian on Tuesday December 15, 2015 @09:33PM
(#10741987)
It might be possible to pull this off with the new compiler because it's draft mode is a true incremental unoptimized draft, and translating an expression to call the JS is a relatively straightforward ABI.
BTW, you don't have to debug in Chrome. If you attach IntelliJ to the JSVM, you can debug right inside your IDE, stepping over breakpoints in Java, etc. SDBG for Eclipse does the same things. (https://www.youtube.com/watch?v=icJEa5lcJaQ)