On Mon, Jan 5, 2009 at 9:02 AM, blissteria <[email protected]> wrote: > There is another solution that works but I do not trully understand > why. I wrap the call of "new MyObject()" in a function defined in the > foo.js file : > function wrappingMyObjectConstructor() { > try { > return new MyObject(); > } catch (e) { > throw e; > } > } > > and calling wrappingMyObjectConstructor in JSNI works fine in IE. This > is a hack, it works, but does anyone know how to avoid this or can > explain this?
You may have found a bug in GWT. If GWT can catch thrown strings in the second case but not in the first case, then I think there's a problem with the exception mapping between the languages. You might want to file a bug and, if you do, try to include a really good repro case. Ian --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
