Monday, September 26, 2016

Re: Trailing _0 in variable names and -generateJsInteropExports flag

On Monday, September 26, 2016 at 11:50:22 AM UTC+2, Yann Vo wrote:

I just raised for which I had a quick rely (thanks for that!) but... it was closed and flagged invalid.

Rather than polluting the bug database further, I open this thread (which I would have done initially if I had not considered this behavior as a regression wrt 2.8beta1).

Now my question: I have done the suggested change: I added -generateJsInteropExports in my compile command, but it does not seem to do any good...

Whether I add -nogenerateJsInteropExports or -generateJsInteropExports does not seem to change anything (and if I make an intentional typo -nogenerateJsInteropExportypos, the compiler yells which proves that my flags are properly passed to the compiler).

After some research I am still stuck... Can it be that my custom linker (to make the generated code work in a web worker) is the cause of the problem?

I just cloned your repository (at 37e4751bf5c1a914a65df8c8da9e5d311f55e78f) and ran a "./gradlew gwtCompile", and the generated JS has:
_.onMessage = function onMessage(message){
  var msg;
  msg = new cewd.MyWorkerMessage;
  msg.code = 'OK';
  msg.payload = cew.createBuffer(50);

So it seems to be working as intended.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment