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

fix: make certain values on process read-only #15628

Merged
merged 2 commits into from Nov 8, 2018

Conversation

BinaryMuse
Copy link
Contributor

@BinaryMuse BinaryMuse commented Nov 7, 2018

Description of Change

Certain values on the process object should be read-only, either to match similar values (e.g. process.versions.x) or because it doesn't make sense for the values to be changed (because they represent some condition that cannot be changed).

Part of this change was slated for v2.0, but the change was not made in that version.

The values that I've made read-only are:

  • process.mas
  • process.windowsStore
  • process.versions.electron
  • process.versions.chrome
  • process.type
  • process.pid
  • process.sandboxed

I'm fairly certain there's no good reason for any of these values to not be read-only, but please comment if I've missed something.

Fixes #8083

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • relevant documentation is changed or added
  • PR title follows semantic commit guidelines

Release Notes

Notes: fix: make certain values on process read-only

* `mas`
* `windowsStore`
* `versions.electron`
* `versions.chrome`
* `type`
* `pid`
* `sandboxed`
@BinaryMuse BinaryMuse added semver/major incompatible API changes wip ⚒ labels Nov 7, 2018
@BinaryMuse BinaryMuse self-assigned this Nov 7, 2018
@BinaryMuse BinaryMuse requested review from a team November 7, 2018 22:13
Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jkleinsc jkleinsc merged commit 2a8e8a0 into master Nov 8, 2018
@release-clerk
Copy link

release-clerk bot commented Nov 8, 2018

Release Notes Persisted

fix: make certain values on process read-only

@jkleinsc jkleinsc deleted the mkt/make-process-constants-read-only branch November 8, 2018 14:28
@BinaryMuse BinaryMuse removed the wip ⚒ label Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/major incompatible API changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

process.versions.electron can be overridden
3 participants