Skip to content

Don't mock non-enum accessors - #390

Merged
DmitrySoshnikov merged 1 commit into
masterfrom
mocker_getters
Jun 7, 2015
Merged

DmitrySoshnikov merged 1 commit into
masterfrom
mocker_getters

Conversation

@DmitrySoshnikov

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

CC @AsaAyers

@AsaAyers

AsaAyers commented Jun 6, 2015

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown

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