MCPcopy
hub / github.com/node-formidable/formidable / _flush

Method _flush

src/parsers/JSON.js:17–27  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

15 }
16
17 _flush(callback) {
18 try {
19 const fields = JSON.parse(this.chunks.join(''));
20 this.push(fields);
21 } catch (e) {
22 callback(e);
23 return;
24 }
25 this.chunks = null;
26 callback();
27 }
28}
29
30export default JSONParser;

Callers

nothing calls this directly

Calls 2

callbackFunction · 0.85
parseMethod · 0.80

Tested by

no test coverage detected