Skip to content

Commit

Permalink
fix misbehavior uncaught by the aplus-spec tests
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodongyang committed Jul 13, 2015
1 parent d58e145 commit 2c4f1e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 13 deletions.
11 changes: 0 additions & 11 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,17 +81,6 @@ Handler.prototype = {
, reject: function (x, unlock) {
if (this.state > 1 && unlock !== 1)
return
var then
try {
then = getThen(x)
} catch (e) {
this.reject(e)
return
}
if (then) {
this.follow(x, then)
return
}
this.state = 3
this.reason = x
next(this.errbacks, x)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "in-promise",
"version": "0.1.0",
"version": "0.2.0",
"description": "A minimal Promise/A+ implementation for browsers",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion promise.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2c4f1e2

Please sign in to comment.