Skip to content

Conversation

@tniessen
Copy link
Member

@tniessentniessen commented Jul 31, 2017

MakeCallback can return empty Locals, so it is a good idea to use MaybeLocals here as @trevnorris suggested.

I might have missed some uses where the return value is not used, but the code compiles and tests pass, plus these changes should not change the behavior of MakeCallback anyway.

Partial CI: https://ci.nodejs.org/job/node-test-commit-linuxone/7638/
Linter CI: https://ci.nodejs.org/job/node-test-linter/10833/

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

src

@nodejs-github-botnodejs-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 Jul 31, 2017
@tniessentniessen self-assigned this Jul 31, 2017
Copy link
Member

@TimothyGuTimothyGu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

async-wrap.* LGTM. Other parts rubber-stamp LGTM.

Copy link
Member

@bnoordhuisbnoordhuis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. It would be nice as a follow-up to replace all the non-context calls to Int32Value(), IntegerValue(), etc. with their context overloads.

@tniessen
Copy link
MemberAuthor

@tniessentniessen closed this Aug 2, 2017
tniessen added a commit that referenced this pull request Aug 2, 2017
PR-URL: #14549 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
addaleax pushed a commit that referenced this pull request Aug 2, 2017
PR-URL: #14549 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
@addaleaxaddaleax mentioned this pull request Aug 2, 2017
@MylesBorinsMylesBorins added baking-for-lts PRs that need to wait before landing in a LTS release. lts-watch-v6.x labels Aug 16, 2017
@MylesBorinsMylesBorins removed the baking-for-lts PRs that need to wait before landing in a LTS release. label Aug 17, 2018
Sign up for freeto 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 / srcIssues 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

@tniessen@bnoordhuis@jasnell@addaleax@TimothyGu@cjihrig@MylesBorins@nodejs-github-bot