Skip to content

Commit

Permalink
test: pass TypeError to assert.throws to support v8
Browse files Browse the repository at this point in the history
  • Loading branch information
dicearr committed Oct 25, 2018
1 parent 59f5072 commit 3437a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/statet.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ suite ('StateT', function() {
test ('should throw if M is not ChainRec', function() {
return assert.throws (
function() { return Z.chainRec ([], Function.prototype, 0); },
{message: 'ChainRec.methods.chainRec(...) is not a function'}
new TypeError ('ChainRec.methods.chainRec(...) is not a function')
);
});
test ('should be stack-safe', function() {
Expand Down

0 comments on commit 3437a13

Please sign in to comment.