-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
drop support for unmaintained versions of Node.js; upgrade stuff #3017
Conversation
- avoid fussing about Chai in test files
89bb30d
to
d6c5bc0
Compare
- allow debug in the browser - use browserify's eventemitter - stub growl
This will be (squashed) and merged when the build's green. |
@@ -229,7 +229,7 @@ Runner.prototype.fail = function (test, err) { | |||
++this.failures; | |||
test.state = 'failed'; | |||
|
|||
if (!(err instanceof Error || err && typeof err.message === 'string')) { | |||
if (!((err instanceof Error || err) && typeof err.message === 'string')) { |
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.
Are we sure this shouldn't be if (!(err instanceof Error || (err && typeof err.message === 'string'))) {
? Reading the original, and not remembering exactly how JS evaluates differing chained boolean operators without parentheses, it looks like the original included err
as a condition to guard against accessing .message
of undefined
.
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 you're right.
_stringify(object[i]) + // value | ||
(length ? ',' : ''); // comma | ||
_stringify(object[i]) + // value | ||
(length ? ',' : ''); // comma |
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.
[unimportant] I long for the day that linters can recognise when whitespace has been properly used to make things, any things, line up across multiple lines. [/unimportant]
…hajs#3017) * remove unmaintained versions of Node.js from CI * ignore test fixtures when linting * upgrade ESLint and its ilk * avoid fussing about Chai in test files * lint * upgrade should * upgrade karma-spec-reporter * upgrade growl and debug * update "engines" field in package.json * fix some bundling issues * allow debug in the browser * use browserify's eventemitter * stub growl
Addresses #3016
growl
debug
eslint
and plugins and sweep up codeshould
,growl
, anddebug
engines
field inpackage.json
I'm going to see what else I can squeeze out of this.