Skip to content

Commit

Permalink
Synchronous errors shouldn't hang the spec runner.
Browse files Browse the repository at this point in the history
  • Loading branch information
domenic committed May 16, 2012
1 parent 5c6a4c5 commit 02241ea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/jasmine-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jasmine.Block.prototype.execute = function (onComplete) {
}
} catch (error) {
spec.fail(error);
onComplete();
}
};

0 comments on commit 02241ea

Please sign in to comment.