/src/main/java/netscape/javascript/JSObject.java
if ( jsResult instanceof CharSequence) {
if ( jsResult instanceof ScriptableObject ) {
} final Page page = Window_.getWebWindow().getEnclosedPage(); if (page instanceof HtmlPage) { final HtmlPage htmlPage = (HtmlPage) page; final ScriptResult result = htmlPage.executeJavaScript(expression); final Object jsResult = result.getJavaScriptResult(); <extra_id_0> return new JSObject((ScriptableObject) jsResult); } if (jsResult instanceof CharSequence) { return jsResult.toString(); } return jsResult;