Skip to content

Commit 387ca4e

Browse files
committed
Rebuild es6 shim
1 parent 1409e0a commit 387ca4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

es6-shim/Promise.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,12 +911,13 @@ define(function() {
911911
Rejected.prototype._state = -1;
912912

913913
Rejected.prototype.fold = function(f, z, c, to) {
914-
this._unreport();
915914
to.become(this);
916915
};
917916

918917
Rejected.prototype.when = function(cont) {
919-
this._unreport();
918+
if(typeof cont.rejected === 'function') {
919+
this._unreport();
920+
}
920921
runContinuation1(cont.rejected, this, cont.receiver, cont.resolver);
921922
};
922923

0 commit comments

Comments
 (0)