Skip to content

src,stream: use SetAccessorProperty instead of SetAccessor - #17665

Closed
jure wants to merge 16 commits into
nodejs:masterfrom
jure:set_accessor_property
Closed

jure wants to merge 16 commits into
nodejs:masterfrom
jure:set_accessor_property

Conversation

@jure

@jure jure commented Dec 13, 2017 •

Copy link
Copy Markdown
Contributor

Fixes: #17636
Refs: #16482
Refs: #16860

As per #17636's solution 1 (found in #17636 (comment)), this PR allows Object.getOwnPropertyDescriptor(process.stdin._handle.__proto__, 'bytesRead') to not throw anymore and return an object/property descriptor. However, accessing this property using process.stdin._handle.__proto__.bytesRead will still throw (as is the current case on 8.9.2+).

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines
Affected core subsystem(s)

src, stream

Loading
Sign up for free to 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++. lib / src Issues and PRs involving general changes in the lib/ or src/ directories.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Object.getOwnPropertyDescriptor throws TypeError on process _handle

7 participants

⌂ Proxy