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
The wrapped handler fails the handler === finallyHandler check in Promise.prototype._settlePromise.
handler === finallyHandler
Promise.prototype._settlePromise
To repro, add this test case to the cancel.js test:
if (testUtils.isNodeJS) { specify("cancels the promise chain within a domain", function() { var called = false; var thens = 0; var resolveChain; require("domain").create().enter(); var root = new Promise(function(resolve, reject, onCancel) { resolveChain = resolve; onCancel(function() { called = true; }); }).then(function() { thens++; }).then(function() { thens++; }).then(function() { thens++; }); root.cancel(); resolveChain(); return awaitLateQueue(function() { assert.equal(0, thens); assert(called); }); }); }
The text was updated successfully, but these errors were encountered:
0bc9bcd
No branches or pull requests
The wrapped handler fails the
handler === finallyHandler
check inPromise.prototype._settlePromise
.To repro, add this test case to the cancel.js test:
The text was updated successfully, but these errors were encountered: