Skip to content

Commit

Permalink
Release v1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
petkaantonov committed Feb 25, 2014
1 parent 73afa4a commit f53c434
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 3 deletions.
34 changes: 34 additions & 0 deletions browser/bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -5785,6 +5785,8 @@ function Promise$_follow(promise) {
promise._getCarriedStackTrace());
}

if (promise._isRejectionUnhandled()) promise._unsetRejectionIsUnhandled();

if (debugging &&
promise._traceParent == null) {
promise._traceParent = this;
Expand Down Expand Up @@ -10307,6 +10309,8 @@ function Promise$_follow(promise) {
promise._getCarriedStackTrace());
}

if (promise._isRejectionUnhandled()) promise._unsetRejectionIsUnhandled();

if (debugging &&
promise._traceParent == null) {
promise._traceParent = this;
Expand Down Expand Up @@ -31911,7 +31915,37 @@ describe("immediate failures with .then", function(done) {
});
});

describe("gh-118", function() {
specify("eventually rejected promise", function(done) {
onUnhandledFail();

Promise.resolve().then(function() {
return new Promise(function(_, reject) {
setTimeout(function() {
reject(13);
}, 13);
});
}).caught(async(done));
});

specify("already rejected promise", function(done) {
onUnhandledFail();

Promise.resolve().then(function() {
return Promise.reject(13);
}).caught(async(done));
});

specify("immediately rejected promise", function(done) {
onUnhandledFail();

Promise.resolve().then(function() {
return new Promise(function(_, reject) {
reject(13);
});
}).caught(async(done));
});
});

if (Promise.hasLongStackTraces()) {
describe("Gives long stack traces for non-errors", function() {
Expand Down
4 changes: 3 additions & 1 deletion js/browser/bluebird.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* bluebird build version 1.0.6
* bluebird build version 1.0.7
* Features enabled: core, timers, race, any, call_get, filter, generators, map, nodeify, promisify, props, reduce, settle, some, progress, cancel, synchronous_inspection
*/
/**
Expand Down Expand Up @@ -2416,6 +2416,8 @@ function Promise$_follow(promise) {
promise._getCarriedStackTrace());
}

if (promise._isRejectionUnhandled()) promise._unsetRejectionIsUnhandled();

if (debugging &&
promise._traceParent == null) {
promise._traceParent = this;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bluebird",
"description": "Full featured Promises/A+ implementation with exceptionally good performance",
"version": "1.0.6",
"version": "1.0.7",
"keywords": [
"promise",
"performance",
Expand Down
2 changes: 1 addition & 1 deletion test/mocha/unhandled_rejections.js
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ describe("immediate failures with .then", function(done) {
});
});

describe("gh-117", function() {
describe("gh-118", function() {
specify("eventually rejected promise", function(done) {
onUnhandledFail();

Expand Down

0 comments on commit f53c434

Please sign in to comment.