Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Node 4] Handle bound functions #489

Merged
merged 1 commit into from
Sep 5, 2015
Merged

Conversation

ide
Copy link
Contributor

@ide ide commented Sep 5, 2015

Bound functions now are named "bound ${name}", which is not a valid function identifier. To replicate this name in the module mocker, we can strip off "bound " and call bind() on the generated function instead.

Fix #488

Bound functions now are named "bound ${name}", which is not a valid function identifier. To replicate this name in the module mocker, we can strip off "bound " and call `bind()` on the generated function instead.
@cpojer
Copy link
Member

cpojer commented Sep 5, 2015

thanks @ide!

cpojer added a commit that referenced this pull request Sep 5, 2015
[Node 4] Handle bound functions
@cpojer cpojer merged commit cadafd6 into jestjs:master Sep 5, 2015
@ide ide deleted the bound-functions branch September 23, 2015 08:32
@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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bound functions in Node 4.0 break moduleMocker.js
2 participants