Skip to content

Allow undefined from ProxyHandler<T>.getOwnPropertyDescriptor#10550

Merged
mhegazy merged 1 commit into
microsoft:masterfrom
benmosher:strict-null-check-proxy
Sep 13, 2016
Merged

Allow undefined from ProxyHandler<T>.getOwnPropertyDescriptor#10550
mhegazy merged 1 commit into
microsoft:masterfrom
benmosher:strict-null-check-proxy

Conversation

@benmosher

Copy link
Copy Markdown
Contributor

Currently, with strictNullChecks enabled, the getOwnPropertyDescriptor hook cannot be correctly implemented as all code paths must return a valid PropertyDescriptor.

Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/handler/getOwnPropertyDescriptor

@msftclas

Copy link
Copy Markdown

Hi @benmosher, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no Contribution License Agreement is required at this point. Real humans will now evaluate your PR.

TTYL, MSBOT;

@mhegazy

mhegazy commented Sep 13, 2016

Copy link
Copy Markdown
Contributor

Thanks for the PR, and sorry for the delay. In the future please file an issue along with the PR to document the change.

@benmosher

Copy link
Copy Markdown
Contributor Author

@mhegazy will do. wasn't sure of the protocol since it was such a minor change 😅

@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants