FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

js_stream: prevent abort if isalive doesn't exist by trevnorris · Pull Request #3282 · nodejs/node · GitHub

/ node Public

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

Closed
trevnorris wants to merge 1 commit into
nodejs:masterfrom
trevnorris:no-abort-wo-cb
Closed

js_stream: prevent abort if isalive doesn't exist#3282
trevnorris wants to merge 1 commit into
nodejs:masterfrom
trevnorris:no-abort-wo-cb

Conversation

Copy link
Copy Markdown
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 added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 8, 2015

indutny commented Oct 8, 2015

Copy link
Copy Markdown
Member

LGTM

Copy link
Copy Markdown
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 <fedor.indutny@gmail.com>

Copy link
Copy Markdown
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 <fedor.indutny@gmail.com>

Copy link
Copy Markdown
Contributor Author

Cherry-picked to v4.x on 1850879.

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

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


Back | FazBrowse Home | New Git URL