Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "http: don't bother making a copy of the options"
This reverts commit 06cfff9. Reverted because it introduced a regression where (because options were modified in the later functionality) options.host and options.port would be overridden with values provided in other, supported ways. PR-URL: #1467 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
- Loading branch information
7180597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but this is return issue with options created by constructor where props defined in prototype
nodejs/node-v0.x-archive#14569
7180597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mogadanez would
options = Object.create(options || {})
work?(as suggested here: #1467 (comment))
7180597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mogadanez I think as long as the options aren't modified, we can support getters - would you like to open a PR along the lines of @Fishrock123 's comment / #592?
7180597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not work. Object,create does not make a copy
7180597
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mogadanez the properties should be on the prototype,
util.inspect
just doesn't show properties there.