FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

src: yield empty maybes for failed AsyncWrap::MakeCallback calls by addaleax · Pull Request #22078 · nodejs/node · GitHub

/ node Public

src: yield empty maybes for failed AsyncWrap::MakeCallback calls - #22078

Closed
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:async-wrap-makecallback-empty
Closed

src: yield empty maybes for failed AsyncWrap::MakeCallback calls#22078
addaleax wants to merge 1 commit into
nodejs:masterfrom
addaleax:async-wrap-makecallback-empty

Conversation

addaleax commented Aug 1, 2018

Copy link
Copy Markdown
Member

Use an empty MaybeLocal<Value> as the return value for
AsyncWrap::MakeCallback() if an exception occurred,
regardless of MakeCallback depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

Copy link
Copy Markdown
Collaborator

addaleax requested a review from ryzokuken August 1, 2018 23:10
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. labels Aug 1, 2018

addaleax commented Aug 2, 2018

Copy link
Copy Markdown
Member Author

addaleax commented Aug 9, 2018
edited
Loading

Copy link
Copy Markdown
Member Author

addaleax added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 9, 2018

jasnell commented Aug 12, 2018

Copy link
Copy Markdown
Member

jasnell pushed a commit that referenced this pull request Aug 12, 2018
Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

PR-URL: #22078
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>

jasnell commented Aug 12, 2018

Copy link
Copy Markdown
Member

Landed in 45d0b4a

rvagg commented Aug 13, 2018

Copy link
Copy Markdown
Member

@addaleax would you mind backporting this to v10.x-staging please? There's a change in master that removed an additional IsInnerMakeCallback() that's not in v10.x and I'm not confident enough in what should be done about it so I'll leave it to you.

addaleax deleted the async-wrap-makecallback-empty branch August 19, 2018 19:26

Copy link
Copy Markdown
Member Author

I think this applies cleanly now?

targos commented Aug 19, 2018

Copy link
Copy Markdown
Member

@addaleax it applies cleanly but fails to compile.

targos removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 19, 2018
addaleax added a commit to addaleax/node that referenced this pull request Aug 24, 2018
Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

PR-URL: nodejs#22078
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
addaleax added a commit that referenced this pull request Aug 28, 2018
Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

PR-URL: #22078
Backport-PR-URL: #22505
Reviewed-By: Michaël Zasso <targos@protonmail.com>
targos pushed a commit that referenced this pull request Sep 3, 2018
Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

PR-URL: #22078
Backport-PR-URL: #22505
Reviewed-By: Michaël Zasso <targos@protonmail.com>
targos pushed a commit that referenced this pull request Sep 6, 2018
Use an empty `MaybeLocal<Value>` as the return value for
`AsyncWrap::MakeCallback()` if an exception occurred,
regardless of `MakeCallback` depth.

Unfortunately, the public API can not make this switch without
a breaking change (and possibly some kind of deprecation/renaming).

PR-URL: #22078
Backport-PR-URL: #22505
Reviewed-By: Michaël Zasso <targos@protonmail.com>
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

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants


Back | FazBrowse Home | New Git URL