void VJSXMLHttpRequest::_GetStatusText(XBOX::VJSParms_getProperty& ioParms, XMLHttpRequest* inXhr) { if(inXhr) { XBOX::VString value; XBOX::VError res=inXhr->GetStatusText(&value); ioParms.ReturnVValue(value); //Don't throw any error here, but returns an empty string. } else XBOX::vThrowError(VE_XHRQ_JS_BINDING_ERROR); }
void VJSXMLHttpRequest::_GetReadyState(XBOX::VJSParms_getProperty& ioParms, XMLHttpRequest* inXhr) { if(inXhr) { XBOX::VError res; XBOX::VLong value; res=inXhr->GetReadyState(&value); //Should never fails... ioParms.ReturnVValue(value); if(res!=XBOX::VE_OK) XBOX::vThrowError(res); } else XBOX::vThrowError(VE_XHRQ_JS_BINDING_ERROR); }