-
Notifications
You must be signed in to change notification settings - Fork 464
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: refactor call js wrapper #1242
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This looks reasonable to me. @KevinEady could you take a look as well? |
The concern of doing this I remember we needed to wait to land the the TypedTSFN until Node 10 was decommissioned because the |
We discussed in last team meeting and @vmoroz will try out using the std in a slightly different way that he has used as a work around before. |
I have addressed this issue in the new PR #1245. It seems that we had two problems:
@JckXia feel free to get the fix from my PR to this one. Then, I will rescope my PR to have just warning fixes in VS 2017. |
Thanks @vmoroz! I updated my PR to incorporate this workaround. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Running the CI for windows-2017 on Jenkins. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Landed as ad7ff92 |
The visual studio compiler seems to have an issue with deducting the type of
call
(#1237), which prevents us from using thestd::enable_if
statement to handle cases whereCallJs
isn't provided by the user. This PR aims to work around this issue.