Skip to content

Commit

Permalink
[Fix] .catch is a syntax error in older browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 18, 2020
1 parent cf8dccc commit 6df4dfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ Test.prototype.run = function () {
if (!self.calledEnd) {
self.end();
}
}).catch(function onError(err) {
})['catch'](function onError(err) {
self.fail(err);
self.end();
});
Expand Down

0 comments on commit 6df4dfc

Please sign in to comment.