(converter)
| 25 | var ProcessorFork = /** @class */ (function (_super) { |
| 26 | __extends(ProcessorFork, _super); |
| 27 | function ProcessorFork(converter) { |
| 28 | var _this = _super.call(this, converter) || this; |
| 29 | _this.converter = converter; |
| 30 | _this.inited = false; |
| 31 | _this.resultBuf = []; |
| 32 | _this.leftChunk = ""; |
| 33 | _this.finalChunk = false; |
| 34 | _this.childProcess = require("child_process").spawn(process.execPath, [__dirname + "/../v2/worker.js"], { |
| 35 | stdio: ["pipe", "pipe", "pipe", "ipc"] |
| 36 | }); |
| 37 | _this.initWorker(); |
| 38 | return _this; |
| 39 | } |
| 40 | ProcessorFork.prototype.flush = function () { |
| 41 | var _this = this; |
| 42 | return new Promise(function (resolve, reject) { |
nothing calls this directly
no test coverage detected