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

tls, binding: backport of process.binding('config') and regression fix by jasnell · Pull Request #7551 · nodejs/node · GitHub

/ node Public

tls, binding: backport of process.binding('config') and regression fix - #7551

Closed
jasnell wants to merge 3 commits into
nodejs:v4.x-stagingfrom
jasnell:backport-process-config
Closed

tls, binding: backport of process.binding('config') and regression fix#7551
jasnell wants to merge 3 commits into
nodejs:v4.x-stagingfrom
jasnell:backport-process-config

Conversation

jasnell commented Jul 5, 2016

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test nosign (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

process.binding, tls

Description of change

Cherry picks the addition of process.binding('config') to v4.x and fixes the regression in #6114

/cc @thealphanerd

jasnell added 3 commits July 5, 2016 16:10
PR-URL: nodejs#6266
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
It turns out that userland likes to override process.config with
their own stuff. If we want to be able to depend on it in any way,
we need our own internal mechanism.

This adds a new private process.binding('config') that is
intended to serve as a container for internal flags and compile
time configs that need to be passed on to the JS layer.

PR-URL: nodejs#6266
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
When the fips mode check was added sometime in v4 it caused a
regression in some edge cases (see nodejs#6114)
because `process.config` can be overwritten by userland modules.
This switches to using the backported process.binding('config') to
fix the regression.

Fixes: nodejs#6114
jasnell added tls Issues and PRs related to the tls subsystem. process Issues and PRs related to the process subsystem. labels Jul 5, 2016
nodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. build Issues and PRs related to build files or the CI. labels Jul 5, 2016

jasnell commented Jul 5, 2016

Copy link
Copy Markdown
Member Author

mscdex added v4.x and removed build Issues and PRs related to build files or the CI. labels Jul 5, 2016
MylesBorins self-assigned this Jul 6, 2016
jasnell self-assigned this Jul 7, 2016

Copy link
Copy Markdown
Contributor

landed in 4184cb0...f5756d9

Copy link
Copy Markdown
Contributor

LGTM

MylesBorins pushed a commit that referenced this pull request Jul 14, 2016
When the fips mode check was added sometime in v4 it caused a
regression in some edge cases (see #6114)
because `process.config` can be overwritten by userland modules.
This switches to using the backported process.binding('config') to
fix the regression.

Fixes: #6114

PR-URL: #7551
Reviewed-By: Myles Borins <myles.borins@gmail.com>
MylesBorins pushed a commit that referenced this pull request Jul 14, 2016
When the fips mode check was added sometime in v4 it caused a
regression in some edge cases (see #6114)
because `process.config` can be overwritten by userland modules.
This switches to using the backported process.binding('config') to
fix the regression.

Fixes: #6114

PR-URL: #7551
Reviewed-By: Myles Borins <myles.borins@gmail.com>
MylesBorins mentioned this pull request Jul 14, 2016
MylesBorins removed their assignment Dec 27, 2016
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++. process Issues and PRs related to the process subsystem. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL