Skip to content

Commit 6df4dfc

Browse files
committed
[Fix] .catch is a syntax error in older browsers
1 parent cf8dccc commit 6df4dfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Test.prototype.run = function () {
109109
if (!self.calledEnd) {
110110
self.end();
111111
}
112-
}).catch(function onError(err) {
112+
})['catch'](function onError(err) {
113113
self.fail(err);
114114
self.end();
115115
});

0 commit comments

Comments
 (0)