org.eclipse.swt.browser.Browser.evaluate(String) and org.eclipse.swt.browser.BrowserFunction.execute(Object[]) methods send values back and forth between JavaScript and Java.
If the values being passed are types , types get converted. The table below shows the type conversions that happen. Attempts to pass an unsupported type will cause an SWTException.

Pingback: Riding the Editor Life Cycle | Dean on Eclipse