-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: export Agent's constructor and destructor #3046
Conversation
lgtm @zcbenz is this the only blocker for you using it as a shared library? was it working properly for electron prior to v4? |
@rvagg Yeah it is the only blocker, before |
@trevnorris, @bnoordhuis, @indutny any of you care to give this a quick look? |
also #3058 while you're at it |
LGTM |
1 similar comment
LGTM |
Wouldn't it make more sense to move the |
@bnoordhuis Both ways are good to me, I can create a new PR if you prefer that way. |
Moving the constructor and destructor would have my preference. It's more churn initially but more maintainable long-term. |
good call @bnoordhuis, closing in favour of #3098 |
Since
node::Environment
includesnode::debugger::Agent
as a member data, and the constructor and destructor ofnode::Environment
are inlined, we have to exportAgent
's constructor and destructor, otherwise when Node is built as shared library we will get following error: