src: export Agent's constructor and destructor#3046
Closed
zcbenz wants to merge 1 commit intonodejs:masterfrom
zcbenz:export-debug-agent
Closed
src: export Agent's constructor and destructor#3046zcbenz wants to merge 1 commit intonodejs:masterfrom zcbenz:export-debug-agent
zcbenz wants to merge 1 commit intonodejs:masterfrom
zcbenz:export-debug-agent
Conversation
Member
|
lgtm @zcbenz is this the only blocker for you using it as a shared library? was it working properly for electron prior to v4? |
Contributor
Author
|
@rvagg Yeah it is the only blocker, before |
Member
|
@trevnorris, @bnoordhuis, @indutny any of you care to give this a quick look? |
Member
|
also #3058 while you're at it |
Member
|
LGTM |
1 similar comment
Contributor
|
LGTM |
Member
|
Wouldn't it make more sense to move the |
Contributor
Author
|
@bnoordhuis Both ways are good to me, I can create a new PR if you prefer that way. |
Member
|
Moving the constructor and destructor would have my preference. It's more churn initially but more maintainable long-term. |
Member
|
good call @bnoordhuis, closing in favour of #3098 |
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since
node::Environmentincludesnode::debugger::Agentas a member data, and the constructor and destructor ofnode::Environmentare inlined, we have to exportAgent's constructor and destructor, otherwise when Node is built as shared library we will get following error: