We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if i modify this code(in then() method)
super.then( value => onSettled("resolved", value, onFulfilled), reason => onSettled("rejected", reason, onRejected) );
to
super .then( value => onSettled("resolved", value, onFulfilled)) .catch( reason => onSettled("rejected", reason, onRejected))
my code occures this error abortable-promise.ts:131 Uncaught (in promise) RangeError: Maximum call stack size exceeded
abortable-promise.ts:131 Uncaught (in promise) RangeError: Maximum call stack size exceeded
The text was updated successfully, but these errors were encountered:
You can't do that because they are different.
new Promise
.then
.catch
.abort
super.catch(onRejected)
this.then(undefined, onRejected)
Let’s say:
const promise = new AbortablePromise(); promise.then(); // Without this in your modify, it won't throw errors
- Case 1: super.then(onFulfilled, onRejected)
- Case 2: super.then(onFulfilled).catch(onRejected)
Sorry, something went wrong.
No branches or pull requests
if i modify this code(in then() method)
to
my code occures this error
abortable-promise.ts:131 Uncaught (in promise) RangeError: Maximum call stack size exceeded
The text was updated successfully, but these errors were encountered: