Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

newRxError is not a constructor #719

Closed
ghost opened this issue Jul 21, 2018 · 0 comments
Closed

newRxError is not a constructor #719

ghost opened this issue Jul 21, 2018 · 0 comments

Comments

@ghost
Copy link

ghost commented Jul 21, 2018

Case

Bug.

Issue

The code here:

rxdb/src/util.js

Lines 197 to 200 in 41cb52e

throw new RxError.newRxError('UT2', {
regex: regStr,
givenName: name,
});

Uses the new operator on RxError.newRxError, however RxError.newRxError is not a constructor. An additional error is then thrown, masking the original error.

@ghost ghost mentioned this issue Jul 21, 2018
1 task
@pubkey pubkey closed this as completed in c2b5c2e Jul 31, 2018
pubkey added a commit that referenced this issue Jul 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants