Skip to content

Fix the case when this/root is undefined #138

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

Merged
merged 1 commit into from
Aug 10, 2018

Conversation

KidkArolis
Copy link
Contributor

Some combination of webpack and babel sometimes rewrites this to void 0:

image

Why is this line root.DeepDiff = accumulateDiff; needed at all, could it be removed?

@KidkArolis
Copy link
Contributor Author

The reason I ask is because for the browser case there's already a root.DeepDiff = deepDiff; on line 21, I don't think we need the one at the bottom of the module.

@xanderberkein
Copy link
Contributor

Thanks, this is what I needed to make this package 100% compatible with react-native. I didn't notice the use root there earlier.

I pulled your PR into mine: #134

@flitbit flitbit merged commit 9b9b804 into flitbit:master Aug 10, 2018
@KidkArolis
Copy link
Contributor Author

@flitbit thanks for merging. I see the 1.0.2 tag in github, but it's not on npm?

@KidkArolis KidkArolis deleted the fix-undefined-root branch August 16, 2018 13:14
@flitbit
Copy link
Collaborator

flitbit commented Aug 16, 2018

Yeah, didn't change the NPM token on the CI server, my bad. Should be published now.

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.

3 participants