(v8.x backport) 12712 - util: add util.callbackify()#13750
Closed
refack wants to merge 4 commits intonodejs:v8.x-stagingfrom
Closed
(v8.x backport) 12712 - util: add util.callbackify()#13750refack wants to merge 4 commits intonodejs:v8.x-stagingfrom
refack wants to merge 4 commits intonodejs:v8.x-stagingfrom
Conversation
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` PR-URL: nodejs#12712 Fixes: nodejs/CTC#109 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
The `FALSY_VALUE_REJECTION` error code added by nodejs#12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. PR-URL: nodejs#13604 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit adds coverage for util.callbackify() type checking. PR-URL: nodejs#13705
Contributor
Author
Contributor
Author
Contributor
Author
Member
I’ll still wait for it to land then |
Contributor
Author
Landed, so this is ready. |
addaleax
pushed a commit
that referenced
this pull request
Jun 20, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jun 20, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Member
Contributor
Author
cool. |
Merged
addaleax
pushed a commit
that referenced
this pull request
Jun 21, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jun 21, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jun 24, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jun 24, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
rvagg
pushed a commit
that referenced
this pull request
Jun 29, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
rvagg
pushed a commit
that referenced
this pull request
Jun 29, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jul 11, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jul 11, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jul 18, 2017
Add `util.callbackify(function)` for creating callback style functions from functions returning a `Thenable` Original-PR-URL: #12712 Fixes: nodejs/CTC#109 Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Original-Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Original-Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
addaleax
pushed a commit
that referenced
this pull request
Jul 18, 2017
The `FALSY_VALUE_REJECTION` error code added by #12712 did not have the `ERR_` prefix, nor was it added to the errors.md documentation. Add the prefix in for consistency. Original-PR-URL: #13604 Original-Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Original-Reviewed-By: Timothy Gu <timothygu99@gmail.com> Original-Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Original-Reviewed-By: Anna Henningsen <anna@addaleax.net> Original-Reviewed-By: Refael Ackermann <refack@gmail.com> Original-Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Original-Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> PR-URL: #13750 Reviewed-By: Anna Henningsen <anna@addaleax.net>
Contributor
|
Should this be backported to |
Contributor
Author
|
My intuition is if we don't backport |
Contributor
Author
Member
|
I'm not sure, this is an API change that is mostly reactive to a feature 6.x doesn't have (async/await). I'm fine with backporting it it's just not really required IMO. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs: #12712
Refs: #13604
Refs: #13705
(#13705 hasn't landed onmasterbut it's ready)Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
util