-
-
Notifications
You must be signed in to change notification settings - Fork 699
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make tests pass with --use_strict
#1040
Conversation
err(function(){ | ||
function Thing(){}; | ||
var t = new Thing(); | ||
Thing.prototype = 1337; | ||
t.should.be.an.instanceof(Thing); | ||
}, expectedError, true); | ||
}, 'The instanceof assertion needs a constructor but function was given.', true); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the message is a bit misleading: TypeError
is thrown because rhs.prototype
is primitive, type of rhs
is OK.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All LGTM 👍 awesome work @shvaikalesh
Should we add |
Not yet - we'll do a push for linting very soon though I think. |
Closes #1034
Related to chaijs/assertion-error#9