Skip to main content

xhr_ctor

Function xhr_ctor 

Source
pub(crate) fn xhr_ctor(
    _it: &mut Interp,
    _t: Value,
    _a: &[Value],
) -> Result<Value, Value>
Expand description

XMLHttpRequest: AtmOS の HTTP は同期なので send() で即取得し readyState=4 まで進め、 onreadystatechange → onload(またはonerror) を同期発火する。