Skip to content

Conversation

@jasnell
Copy link
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
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 <[email protected]>
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
@jasnelljasnell 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-botnodejs-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
Copy link
MemberAuthor

@mscdexmscdex added v4.x and removed build Issues and PRs related to build files or the CI. labels Jul 5, 2016
@MylesBorinsMylesBorins self-assigned this Jul 6, 2016
@jasnelljasnell self-assigned this Jul 7, 2016
@MylesBorins
Copy link
Contributor

landed in 4184cb0...f5756d9

@MylesBorins
Copy link
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 <[email protected]>
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 <[email protected]>
@MylesBorinsMylesBorins mentioned this pull request Jul 14, 2016
@MylesBorinsMylesBorins removed their assignment Dec 27, 2016
Sign up for freeto 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++.processIssues and PRs related to the process subsystem.tlsIssues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@jasnell@MylesBorins@mscdex@nodejs-github-bot