Skip to content

process: mark process.env as side-effect-free - #27684

Closed
addaleax wants to merge 3 commits into
nodejs:masterfrom
addaleax:env-no-sideeffects
Closed

process: mark process.env as side-effect-free#27684
addaleax wants to merge 3 commits into
nodejs:masterfrom
addaleax:env-no-sideeffects

Conversation

@addaleax

Copy link
Copy Markdown
Member

Read-only access to process.env does not have side effects.

Refs: #27523

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Read-only access to `process.env` does not have side effects.
Refs: nodejs#27523
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-botnodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label May 14, 2019
Comment threadtest/parallel/test-process-env-sideeffects.js
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@addaleaxaddaleax added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. inspector Issues and PRs related to the V8 inspector protocol process Issues and PRs related to the process subsystem. labels May 14, 2019
Comment threadtest/parallel/test-process-env-sideeffects.js Outdated
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@ZYSzys

Copy link
Copy Markdown
Member

Landed in abe8211 .

@ZYSzysZYSzys closed this May 18, 2019
pullBot pushed a commit to Rachelmorrell/node that referenced this pull request May 18, 2019
Read-only access to `process.env` does not have side effects.
Refs: nodejs#27523
PR-URL: nodejs#27684
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
targos pushed a commit that referenced this pull request May 18, 2019
Read-only access to `process.env` does not have side effects.
Refs: #27523
PR-URL: #27684
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Aleksei Koziatinskii <ak239spb@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
@BridgeARBridgeAR mentioned this pull request May 21, 2019
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.inspectorIssues and PRs related to the V8 inspector protocolprocessIssues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@addaleax@nodejs-github-bot@ZYSzys@bnoordhuis@alexkozy@Trott@TimothyGu@cjihrig@BridgeAR