()
| 29 | }; |
| 30 | |
| 31 | function read() { |
| 32 | that.readyState = 2; |
| 33 | fs.readFile(info.url, "binary", function(e, d) { |
| 34 | if (e) { |
| 35 | that.status = 404; // assumed |
| 36 | } else { |
| 37 | that.status = 200; |
| 38 | that.responseText = d; |
| 39 | that.responseXML = {_xml: d}; |
| 40 | headers["Content-Length"] = d.length; |
| 41 | } |
| 42 | that.readyState = 4; |
| 43 | XMLHttpRequest._last = that; |
| 44 | if (that.onreadystatechange) that.onreadystatechange(new XMLHttpRequestProgressEvent(that)); |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | function readSync() { |
| 49 | that.readyState = 2; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…