Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: replace deprecated uses of FunctionTemplate::GetFunction #22993

Closed
wants to merge 1 commit into from

Conversation

hashseed
Copy link
Member

Refs: v8@70d60c4

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

@nodejs-github-bot 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 Sep 21, 2018
@hashseed
Copy link
Member Author

This was originally created by @gahaas and committed downstream.

@targos
Copy link
Member

targos commented Sep 21, 2018

Copy link
Member

@joyeecheung joyeecheung left a comment

Choose a reason for hiding this comment

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

The FunctionTemplate here all seem to come from us so it should be safe to just do ToLocalChecked.

@hashseed
Copy link
Member Author

Using ToLocalChecked is not worse than existing code, which would return an empty handle in equivalent cases and crash elsewhere.

@danbev
Copy link
Contributor

danbev commented Sep 24, 2018

Landed in 7dde560.

@danbev danbev closed this Sep 24, 2018
danbev pushed a commit that referenced this pull request Sep 24, 2018
PR-URL: #22993
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
@hashseed
Copy link
Member Author

Thanks for landing this!

targos pushed a commit that referenced this pull request Sep 24, 2018
PR-URL: #22993
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
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.

None yet