Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit 7f118a4

Browse files
Fixing Issue #850
1 parent 1258b03 commit 7f118a4

32 files changed

Lines changed: 94 additions & 49 deletions

dist/rx.all.compat.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,30 +166,35 @@
166166

167167
var EmptyError = Rx.EmptyError = function() {
168168
this.message = 'Sequence contains no elements.';
169+
this.name = 'EmptyError';
169170
Error.call(this);
170171
};
171172
EmptyError.prototype = Error.prototype;
172173

173174
var ObjectDisposedError = Rx.ObjectDisposedError = function() {
174175
this.message = 'Object has been disposed';
176+
this.name = 'ObjectDisposedError';
175177
Error.call(this);
176178
};
177179
ObjectDisposedError.prototype = Error.prototype;
178180

179181
var ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError = function () {
180182
this.message = 'Argument out of range';
183+
this.name = 'ArgumentOutOfRangeError';
181184
Error.call(this);
182185
};
183186
ArgumentOutOfRangeError.prototype = Error.prototype;
184187

185188
var NotSupportedError = Rx.NotSupportedError = function (message) {
186189
this.message = message || 'This operation is not supported';
190+
this.name = 'NotSupportedError';
187191
Error.call(this);
188192
};
189193
NotSupportedError.prototype = Error.prototype;
190194

191195
var NotImplementedError = Rx.NotImplementedError = function (message) {
192196
this.message = message || 'This operation is not implemented';
197+
this.name = 'NotImplementedError';
193198
Error.call(this);
194199
};
195200
NotImplementedError.prototype = Error.prototype;
@@ -536,7 +541,7 @@
536541
var hasProp = {}.hasOwnProperty,
537542
slice = Array.prototype.slice;
538543

539-
var inherits = this.inherits = Rx.internals.inherits = function (child, parent) {
544+
var inherits = Rx.internals.inherits = function (child, parent) {
540545
function __() { this.constructor = child; }
541546
__.prototype = parent.prototype;
542547
child.prototype = new __();

dist/rx.all.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.compat.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,30 +164,35 @@
164164

165165
var EmptyError = Rx.EmptyError = function() {
166166
this.message = 'Sequence contains no elements.';
167+
this.name = 'EmptyError';
167168
Error.call(this);
168169
};
169170
EmptyError.prototype = Error.prototype;
170171

171172
var ObjectDisposedError = Rx.ObjectDisposedError = function() {
172173
this.message = 'Object has been disposed';
174+
this.name = 'ObjectDisposedError';
173175
Error.call(this);
174176
};
175177
ObjectDisposedError.prototype = Error.prototype;
176178

177179
var ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError = function () {
178180
this.message = 'Argument out of range';
181+
this.name = 'ArgumentOutOfRangeError';
179182
Error.call(this);
180183
};
181184
ArgumentOutOfRangeError.prototype = Error.prototype;
182185

183186
var NotSupportedError = Rx.NotSupportedError = function (message) {
184187
this.message = message || 'This operation is not supported';
188+
this.name = 'NotSupportedError';
185189
Error.call(this);
186190
};
187191
NotSupportedError.prototype = Error.prototype;
188192

189193
var NotImplementedError = Rx.NotImplementedError = function (message) {
190194
this.message = message || 'This operation is not implemented';
195+
this.name = 'NotImplementedError';
191196
Error.call(this);
192197
};
193198
NotImplementedError.prototype = Error.prototype;
@@ -534,7 +539,7 @@
534539
var hasProp = {}.hasOwnProperty,
535540
slice = Array.prototype.slice;
536541

537-
var inherits = this.inherits = Rx.internals.inherits = function (child, parent) {
542+
var inherits = Rx.internals.inherits = function (child, parent) {
538543
function __() { this.constructor = child; }
539544
__.prototype = parent.prototype;
540545
child.prototype = new __();

dist/rx.all.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.all.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.compat.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,30 +166,35 @@
166166

167167
var EmptyError = Rx.EmptyError = function() {
168168
this.message = 'Sequence contains no elements.';
169+
this.name = 'EmptyError';
169170
Error.call(this);
170171
};
171172
EmptyError.prototype = Error.prototype;
172173

173174
var ObjectDisposedError = Rx.ObjectDisposedError = function() {
174175
this.message = 'Object has been disposed';
176+
this.name = 'ObjectDisposedError';
175177
Error.call(this);
176178
};
177179
ObjectDisposedError.prototype = Error.prototype;
178180

179181
var ArgumentOutOfRangeError = Rx.ArgumentOutOfRangeError = function () {
180182
this.message = 'Argument out of range';
183+
this.name = 'ArgumentOutOfRangeError';
181184
Error.call(this);
182185
};
183186
ArgumentOutOfRangeError.prototype = Error.prototype;
184187

185188
var NotSupportedError = Rx.NotSupportedError = function (message) {
186189
this.message = message || 'This operation is not supported';
190+
this.name = 'NotSupportedError';
187191
Error.call(this);
188192
};
189193
NotSupportedError.prototype = Error.prototype;
190194

191195
var NotImplementedError = Rx.NotImplementedError = function (message) {
192196
this.message = message || 'This operation is not implemented';
197+
this.name = 'NotImplementedError';
193198
Error.call(this);
194199
};
195200
NotImplementedError.prototype = Error.prototype;
@@ -536,7 +541,7 @@
536541
var hasProp = {}.hasOwnProperty,
537542
slice = Array.prototype.slice;
538543

539-
var inherits = this.inherits = Rx.internals.inherits = function (child, parent) {
544+
var inherits = Rx.internals.inherits = function (child, parent) {
540545
function __() { this.constructor = child; }
541546
__.prototype = parent.prototype;
542547
child.prototype = new __();

dist/rx.compat.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.compat.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/rx.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ var
179179
var hasProp = {}.hasOwnProperty,
180180
slice = Array.prototype.slice;
181181

182-
var inherits = this.inherits = Rx.internals.inherits = function (child, parent) {
182+
var inherits = Rx.internals.inherits = function (child, parent) {
183183
function __() { this.constructor = child; }
184184
__.prototype = parent.prototype;
185185
child.prototype = new __();

0 commit comments

Comments
 (0)