| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
LGTM, I guess. Would this allow global.gc() without an eslint directive? |
Sorry, something went wrong.
It looks like it, based on the change to test/common.js, but I could be wrong. LGTM |
Sorry, something went wrong.
|
This is fine and the change LGTM but I'm curious.. why? |
Sorry, something went wrong.
|
@jasnell wrote:
I prefer exceptions to lint rules to be applied only as narrowly as necessary. So rather than applying an exception to the 1324 JS files in test, this applies that exception to just the dozen or so files that need it. |
Sorry, something went wrong.
|
@bnoordhuis asked:
Yes, that would pass linting. |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
Anyone prefer gc() over global.gc() or vice versa? I have a mild preference for the latter because it lets us drop the eslint directive. It's mostly aesthetic though. |
Sorry, something went wrong.
|
Dropping the eslint directive is preferably IMO in case things change in the future on their side or ours. |
Sorry, something went wrong.
Lint rules permitted the `gc` global in any test file. This change limits it to just the files that need it.
|
Removed the directives and replaced instances of gc with global.gc. PTAL! |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
|
LGTM |
Sorry, something went wrong.
Sorry, something went wrong.
|
CI is green except for unrelated and known-problematic tick processor test on OS X which will be fixed Very Soon. |
Sorry, something went wrong.
Lint rules permitted the `gc` global in any test file. This change limits it to just the files that need it. PR-URL: nodejs#6324 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Lint rules permitted the `gc` global in any test file. This change limits it to just the files that need it. PR-URL: #6324 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
|
not landing cleanly @Trott feel free to tag don't land if you don't want to backport |
Sorry, something went wrong.
|
@thealphanerd @Trott I think this can land on v4.x once #6871 lands. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Checklist
Affected core subsystem(s)
test tools
Description of change
Lint rules permitted the gc global in any test file. This change
limits it to just the files that need it.