source: trip-planner-front/node_modules/rxjs/internal/observable/throwError.js@ 188ee53

Last change on this file since 188ee53 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 645 bytes
Line 
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Observable_1 = require("../Observable");
4function throwError(error, scheduler) {
5 if (!scheduler) {
6 return new Observable_1.Observable(function (subscriber) { return subscriber.error(error); });
7 }
8 else {
9 return new Observable_1.Observable(function (subscriber) { return scheduler.schedule(dispatch, 0, { error: error, subscriber: subscriber }); });
10 }
11}
12exports.throwError = throwError;
13function dispatch(_a) {
14 var error = _a.error, subscriber = _a.subscriber;
15 subscriber.error(error);
16}
17//# sourceMappingURL=throwError.js.map
Note: See TracBrowser for help on using the repository browser.