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

process: maintain constructor descriptor #9306

Closed
wants to merge 1 commit into from

Conversation

bengl
Copy link
Member

@bengl bengl commented Oct 27, 2016

Checklist
  • make -j8 test (UNIX), or vcbuild test nosign (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

process

Description of change

Use the original property descriptor instead of just taking the value,
which would previously, by default, be non-writable and non-configurable.

It didn't appear that it was intentional for process.constructor's descriptor
to be locked down, but it was, by using a simple {value: ...} descriptor.

Use the original property descriptor instead of just taking the value,
which would, by default, be non-writable and non-configurable.
@nodejs-github-bot nodejs-github-bot added the lib / src Issues and PRs related to general changes in the lib or src directory. label Oct 27, 2016
@jasnell
Copy link
Member

jasnell commented Oct 27, 2016

LGTM with green CI

@bengl
Copy link
Member Author

bengl commented Oct 27, 2016

Copy link
Contributor

@cjihrig cjihrig left a comment

Choose a reason for hiding this comment

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

LGTM, but it's not entirely clear to me what you're hoping to accomplish with this change.

@Fishrock123
Copy link
Contributor

What's this aiming to solve? 🤔

@bengl
Copy link
Member Author

bengl commented Oct 29, 2016

@Fishrock123 an inconsistency in what's publicly provided in node. We're doing some automated iterating over node's public API objects, and inconsistencies can trip up our code. We can write in some exceptions, but it would be nice to not have to, especially in this case, as the non-configurability is not actually required here (it seems), and was just put there due to the way the property descriptor was originally used there.

@jasnell
Copy link
Member

jasnell commented Dec 5, 2016

@Fishrock123 ... you good with this?

@jasnell
Copy link
Member

jasnell commented Jan 11, 2017

ping @Fishrock123

@jasnell
Copy link
Member

jasnell commented Mar 24, 2017

Ping... status on this one?

@jasnell jasnell added the stalled Issues and PRs that are stalled. label Mar 24, 2017
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

LGTM, I see no problem with landing this.

@addaleax addaleax removed the stalled Issues and PRs that are stalled. label Mar 24, 2017
@addaleax
Copy link
Member

Fresh CI: https://ci.nodejs.org/job/node-test-commit/8674/

Will land if it comes back green.

@addaleax
Copy link
Member

Landed in e0bc5a7

@addaleax addaleax closed this Mar 24, 2017
addaleax pushed a commit that referenced this pull request Mar 24, 2017
Use the original property descriptor instead of just taking the value,
which would, by default, be non-writable and non-configurable.

PR-URL: #9306
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
MylesBorins pushed a commit that referenced this pull request Mar 28, 2017
Use the original property descriptor instead of just taking the value,
which would, by default, be non-writable and non-configurable.

PR-URL: #9306
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@MylesBorins MylesBorins mentioned this pull request Mar 28, 2017
@italoacasas italoacasas mentioned this pull request Apr 10, 2017
2 tasks
@MylesBorins
Copy link
Contributor

should this be backported? it lands cleanly.

@bengl
Copy link
Member Author

bengl commented Apr 19, 2017

@MylesBorins I'd say yes.

MylesBorins pushed a commit that referenced this pull request May 15, 2017
Use the original property descriptor instead of just taking the value,
which would, by default, be non-writable and non-configurable.

PR-URL: #9306
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
@MylesBorins MylesBorins mentioned this pull request May 23, 2017
andrew749 pushed a commit to michielbaird/node that referenced this pull request Jul 19, 2017
Use the original property descriptor instead of just taking the value,
which would, by default, be non-writable and non-configurable.

PR-URL: nodejs/node#9306
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lib / src Issues and PRs related to general changes in the lib or src directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants