Uh oh!
There was an error while loading. Please reload this page.
test: replace util.inherits with es6 extends - #6545
Conversation
eljefedelrodeodeljefe
commented
May 3, 2016
There is also one occurrence in |
bnoordhuis
commented
May 3, 2016
I got that one in the first commit, didn't I? Or did I overlook something? |
eljefedelrodeodeljefe
commented
May 3, 2016
Ah sorry. Was just looking at your stash output. My bad. |
cjihrig
commented
May 3, 2016
LGTM. Any plans for a breaking change to |
jasnell
commented
May 3, 2016
Not a fan of changing the existing test cases to this for two reasons:
I don't mind the change in the benchmark or test/common.js tho |
Agreed, unless there are tangible positives to this I fail to see a good reason for now. (maybe in a year or something?) |
bnoordhuis
commented
May 10, 2016
Guess I'll close this, then.
Not if this PR got backported, right? Or am I misunderstanding you?
Shrug. I don't think that's likely. I wouldn't have opened the PR if I did. |
I wanted to see how hard it would be to eradicate
util.inherits()from an existing code base and I figured, having done the work, I might as well PR it.I did a quick and partial attempt at updating lib/ as well but it makes for huge diffs, plus it breaks code that calls constructors as functions (e.g.
server = http.Server(cb).)CI: https://ci.nodejs.org/job/node-test-pull-request/2477/