()
| 19 | }; |
| 20 | |
| 21 | function read() { |
| 22 | fs.readFile(info.url, "binary", function(e, d) { |
| 23 | if (e) { |
| 24 | self.status = 404; // assumed |
| 25 | } else { |
| 26 | self.status = 200; |
| 27 | self.responseText = d; |
| 28 | self.responseXML = {_xml: d}; |
| 29 | headers["Content-Length"] = d.length; |
| 30 | } |
| 31 | self.readyState = 4; |
| 32 | XMLHttpRequest._last = self; |
| 33 | if (self.onreadystatechange) self.onreadystatechange(); |
| 34 | }); |
| 35 | } |
| 36 | |
| 37 | function readSync() { |
| 38 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected