Skip to content

Commit

Permalink
Merge pull request #665 from brutalcrozt/master
Browse files Browse the repository at this point in the history
add compatibility with strict mode
  • Loading branch information
lucasfcosta committed Apr 6, 2016
2 parents 80a4aea + fe01abd commit 0c68b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chai/assertion.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module.exports = function (_chai, util) {
*/

function Assertion (obj, msg, stack) {
flag(this, 'ssfi', stack || arguments.callee);
flag(this, 'ssfi', stack || Assertion);
flag(this, 'object', obj);
flag(this, 'message', msg);
}
Expand Down

0 comments on commit 0c68b23

Please sign in to comment.