/src/main/java/org/htmlunit/ProxyAutoConfig.java
final FunctionObject functionObject = new FunctionObject( methodName, scope) ;
final FunctionObject functionObject = new FunctionObject ( methodName, method, scope ) ;
return JavaScriptEngine.toString(result); } } private void defineMethod(final String methodName, final Scriptable scope) { for (final Method method : getClass().getMethods()) { if (method.getName().equals(methodName)) { <extra_id_0> ((ScriptableObject) scope).defineProperty(methodName, functionObject, ScriptableObject.EMPTY); } } } public static boolean isPlainHostName(final String host) { return host.indexOf('.') == -1;