| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Change looks good, testing it really quick locally before signing off.. |
Sorry, something went wrong.
There was a problem hiding this comment.
if (this && !new.target)? Otherwise this would also set the prototype for cases like new Class(), right?
Sorry, something went wrong.
There was a problem hiding this comment.
yes. Updated.
Sorry, something went wrong.
|
(I stopped the previous CI job) new CI: https://ci.nodejs.org/job/node-test-pull-request/8399/ |
Sorry, something went wrong.
There was a problem hiding this comment.
Seems fine to me
Sorry, something went wrong.
|
do you think the commit message is ok? or it should be tagged as util? |
Sorry, something went wrong.
|
there was a bug in my test, and it is not working as expected, i.e. it is not fixing the bug :(. |
Sorry, something went wrong.
|
I'm running a CITGM on this, it seems a little "breaky" (explicitly calling Reflect.setPrototypeOf(this, res);) |
Sorry, something went wrong.
Sorry, something went wrong.
Fixes internal/util createClassWrapper to support inheritance without using classes. The constructor now needs to be defined using a Symbol. Fixes: nodejs#13358
|
Eh, yes, this is a bit icky. The code still LGTM but I think I might prefer just going back to using functions instead of classes instead… |
Sorry, something went wrong.
|
I just checked it quickly and it works in node-crc32-stream as well, but I thought the same thing with @addaleax. |
Sorry, something went wrong.
|
The fix is a bit unfortunate but it definitely makes sense in that this approach does essentially the same thing as the old function approach. @mcollina is away at the moment but I'm going through and seeing if there's a way of making the fix cleaner |
Sorry, something went wrong.
|
In general... I think reverting back to using Functions is likely going to be the best bet long term... it is unfortunate, and is not going to be a clean revert... I'll work on that today |
Sorry, something went wrong.
Using ES6 Classes broke userland code. Revert back to functions. Fixes: nodejs#13358 Refs: nodejs#13370
|
Closing in favor of #13374 which just landed. |
Sorry, something went wrong.
Using ES6 Classes broke userland code. Revert back to functions. PR-URL: #13374 Fixes: #13358 Ref: #13370 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Using ES6 Classes broke userland code. Revert back to functions. PR-URL: #13374 Fixes: #13358 Ref: #13370 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
| Back | FazBrowse Home | New Git URL |
Fixes internal/util createClassWrapper to support inheritance
without using classes.
Fixes: #13358
Checklist
Affected core subsystem(s)
zlib