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

Function readSync

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

Source from the content-addressed store, hash-verified

35 }
36
37 function readSync() {
38 try {
39 var d = fs.readFileSync(info.url, "binary");
40 self.status = 200;
41 self.responseText = d;
42 self.responseXML = {_xml: d};
43 headers["Content-Length"] = d.length;
44 } catch (e) {
45 self.status = 404; // assumed
46 }
47 self.readyState = 4;
48 XMLHttpRequest._last = self;
49 if (self.onreadystatechange) self.onreadystatechange();
50 }
51
52 self.getResponseHeader = function(n) {
53 return headers[n];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected