When you define an object literal as

@JsType(isNative = true, namespace = JsPackage.GLOBAL, name="Object")
public class SomeObjLiteral {

}


Calling new on this results in the following javascript code 'new $wnd.Object'. 
You could just emit {} instead. 

It is surprising the number times you see this code especially for React code 
bases and when dealing with JSON structures. 

Is it worth filing an issue?

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/e1388465-ce9f-4bd9-8846-d4de7dc635f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to