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

vm: Removed Watchdog dependency on Environment. #3274

Closed
wants to merge 1 commit into from

Conversation

idoby
Copy link

@idoby idoby commented Oct 8, 2015

Removed the Watchdog class' dependency on Environment to allow it
to be used by addons.

Removed the Watchdog class' dependency on Environment to allow it
to be used by addons.
@bnoordhuis
Copy link
Member

Changes LGTM but node_watchdog.h should not be considered part of the official C++ API / ABI, that's restricted to node.h, node_buffer.h and node_object_wrap.h.

@idoby
Copy link
Author

idoby commented Oct 8, 2015

I understand. Is there a better way to access similar functionality from an external module? I have a Contextify-like module and I'm trying to implement execution timeouts for it, but would like to avoid replicating all the Watchdog code.

@bnoordhuis
Copy link
Member

Not really, I think. I'd probably just copy over the code.

@mscdex mscdex added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 8, 2015
@Fishrock123
Copy link
Contributor

@bnoordhuis Should this be closed then?

bnoordhuis pushed a commit that referenced this pull request Oct 20, 2015
Remove the Watchdog class' dependency on Environment.
No functional changes, only code cleanup.

PR-URL: #3274
Reviewed-By: Ben Noordhuis <[email protected]>
@bnoordhuis
Copy link
Member

The changes themselves LGTM and they make it a little more loosely coupled. I landed it in b244f13, thanks Ido.

@bnoordhuis bnoordhuis closed this Oct 20, 2015
rvagg pushed a commit that referenced this pull request Oct 21, 2015
Remove the Watchdog class' dependency on Environment.
No functional changes, only code cleanup.

PR-URL: #3274
Reviewed-By: Ben Noordhuis <[email protected]>
@rvagg rvagg mentioned this pull request Oct 21, 2015
@MylesBorins
Copy link
Contributor

Should this be included in LTS?

@jasnell

@Fishrock123
Copy link
Contributor

I don't think so.

@MylesBorins
Copy link
Contributor

cool just getting a feel for it. So this would likely be considered a change in functionality

@Fishrock123
Copy link
Contributor

@thealphanerd no not really, it's not really a fix though. More like refactoring, I'm not really sure this qualifies as such.

@jasnell
Copy link
Member

jasnell commented Oct 24, 2015

Yeah, agree with @Fishrock123

@rvagg
Copy link
Member

rvagg commented Jan 15, 2016

I think technically this would qualify as an ABI change, no? We don't ship node_watchdog.h with headers so it's unlikely to be actually used but perhaps this should have been semver-major anyway?

Labelling with dont-land-on-v4.x now anyway.

@idoby idoby deleted the watchdog-remove-depend-on-env branch August 19, 2017 08:56
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++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants