MCPcopy Create free account
hub / github.com/jipegit/OSXAuditor / read

Function read

d3-3.2.8/test/XMLHttpRequest.js:21–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected