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

js_stream: prevent abort if isalive doesn't exist #3282

Closed
wants to merge 1 commit into from

Conversation

trevnorris
Copy link
Contributor

Attempting to check IsAlive() on a JSStream before the isAlive()
callback can be set in JS causes a CHECK to fail in MakeCallback.
Instead return false if the callback hasn't been set.

R=@indutny

CI: https://ci.nodejs.org/job/node-test-pull-request/455/

Attempting to check IsAlive() on a JSStream before the isAlive()
callback can be set in JS causes a CHECK to fail in MakeCallback.
Instead return false if the callback hasn't been set.
@trevnorris trevnorris added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 8, 2015
@indutny
Copy link
Member

indutny commented Oct 8, 2015

LGTM

@trevnorris
Copy link
Contributor Author

CI failures are:

  • test-debug-signal-cluster.js on smartos14-32
  • test-http-response-no-headers.js on smartos14-64
  • test-stringbytes-external.js on pi1-raspbian-wheezy

All are unrelated.

trevnorris added a commit that referenced this pull request Oct 8, 2015
Attempting to check IsAlive() on a JSStream before the isAlive()
callback can be set in JS causes a CHECK to fail in MakeCallback.
Instead return false if the callback hasn't been set.

PR-URL: #3282
Reviewed-By: Fedor Indutny <[email protected]>
@trevnorris
Copy link
Contributor Author

Thanks. Landed in 178ac33.

Considering this a bug fix for LTS. /cc @jasnell

trevnorris added a commit that referenced this pull request Oct 8, 2015
Attempting to check IsAlive() on a JSStream before the isAlive()
callback can be set in JS causes a CHECK to fail in MakeCallback.
Instead return false if the callback hasn't been set.

PR-URL: #3282
Reviewed-By: Fedor Indutny <[email protected]>
@trevnorris
Copy link
Contributor Author

Cherry-picked to v4.x on 1850879.

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.

3 participants