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

Don't mock non-enum accessors #390

Merged
merged 1 commit into from
Jun 7, 2015
Merged

Don't mock non-enum accessors #390

merged 1 commit into from
Jun 7, 2015

Conversation

DmitrySoshnikov
Copy link
Contributor

Don't mock non-enumerable accessors yet: they may throw, and fail in the mocker, when the mocker tries to get the value by the slot. Fixes #389, #380.

@DmitrySoshnikov
Copy link
Contributor Author

CC @AsaAyers

@AsaAyers
Copy link
Contributor

AsaAyers commented Jun 6, 2015

Exclude non-enumerable accessors

I found the comment and code a little confusing. The comment talks about excluding but the code is including the opposite. Maybe the comment should say to only include accessors if they are they are enumerable?

@DmitrySoshnikov
Copy link
Contributor Author

Yeah, OK, I'll change the comment.

DmitrySoshnikov added a commit that referenced this pull request Jun 7, 2015
@DmitrySoshnikov DmitrySoshnikov merged commit 2d5e104 into master Jun 7, 2015
@DmitrySoshnikov DmitrySoshnikov deleted the mocker_getters branch June 23, 2015 06:51
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mocker may throw if some properties are accessors
3 participants