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

Fix resetRetrieveHandlers to reset retrieveSourceMap and retrieveFile functions #235

Merged
merged 1 commit into from
Mar 12, 2019

Conversation

ArtemGovorov
Copy link
Contributor

The handlerExec function produces functions that are using original retrieveFileHandlers/retrieveMapHandlers references, so because the array variables are re-assigned in the resetRetrieveHandlers function, retrieveSourceMap and retrieveFile need to be re-created to point them to correct instances of retrieveFileHandlers/retrieveMapHandlers.

This fixes:
jestjs/jest#6424
jestjs/jest#7402

…eFile` functions

The `handlerExec` function produces functions that are using original `retrieveFileHandlers`/`retrieveMapHandlers` references, so because the array variables are  re-assigned in the `resetRetrieveHandlers` function, `retrieveSourceMap` and `retrieveFile` need to be re-created to point them to correct instances of `retrieveFileHandlers`/`retrieveMapHandlers`.

This fixes:
jestjs/jest#6424
jestjs/jest#7402
@LinusU
Copy link
Collaborator

LinusU commented Mar 12, 2019

LGTM, thanks!

@LinusU LinusU merged commit 538e1c5 into evanw:master Mar 12, 2019
@LinusU
Copy link
Collaborator

LinusU commented Mar 12, 2019

Published as 0.5.11, please report back if it works or not ☺️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants