throw ScriptRuntime.constructError("Error", e.getMessage());
} catch (IOException e) {
throw ScriptRuntime.constructError("Error", e.getMessage());
}
finally {
method.releaseConnection();
}
readyState = 4;
Object readyStateChangeHandler = XMLHttpRequest.this.get("onreadystatechange",XMLHttpRequest.this);
if(readyStateChangeHandler instanceof Function){
((Function)readyStateChangeHandler).call(cx, scope, thisObj, new Object[0]);