Observer.js 523 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var config_1 = require("./config");
  4. var hostReportError_1 = require("./util/hostReportError");
  5. exports.empty = {
  6. closed: true,
  7. next: function (value) { },
  8. error: function (err) {
  9. if (config_1.config.useDeprecatedSynchronousErrorHandling) {
  10. throw err;
  11. }
  12. else {
  13. hostReportError_1.hostReportError(err);
  14. }
  15. },
  16. complete: function () { }
  17. };
  18. //# sourceMappingURL=Observer.js.map