"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkerLogger = void 0;
class WorkerLogger {
    constructor() {
        this.errors = [];
    }
    error(msg) {
        this.errors.push(msg);
    }
    flush() {
        const errors = this.errors.join("\n");
        this.errors = [];
        return {
            errors,
        };
    }
}
exports.WorkerLogger = WorkerLogger;
