"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDoneErrorEvent = void 0;
const object_1 = require("@f2/object");
const defer_1 = require("@f2/defer");
function getDoneErrorEvent(event) {
    const doneErrorResult = (0, defer_1.getDoneError)();
    return {
        doneError: (0, object_1.copy)(doneErrorResult.doneError, event),
        promise: doneErrorResult.promise
    };
}
exports.getDoneErrorEvent = getDoneErrorEvent;
