"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.throwError = void 0;
const Observable_js_1 = require("../Observable.js");
function throwError(errorFactory) {
    return new Observable_js_1.Observable((subscriber) => {
        subscriber.error(errorFactory());
    });
}
exports.throwError = throwError;