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

Delay initializing stringifyCanon until canonicalStringify used. #8558

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Jul 29, 2021

May help with #8557, because initializing let stringifyCanon = new ObjectCanon in module scope led to evaluating the __DEV__ global variable before it had been polyfilled (that's my current theory, at least).

Background reading:

@benjamn
Copy link
Member Author

benjamn commented Jul 29, 2021

benjamn added a commit that referenced this pull request Jul 29, 2021
This will allow us to release the changes from PR #8558 in a beta
release before merging them to main and publishing v3.4.1.
@benjamn benjamn added this to the v3.4.x patch releases milestone Jul 29, 2021
@brainkim
Copy link
Contributor

lgtm

@benjamn benjamn merged commit d5f1b48 into main Jul 29, 2021
@benjamn benjamn deleted the lazy-stringifyCanon-initialization branch July 29, 2021 20:23
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 15, 2023
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.

Uncaught ReferenceError: __DEV__ is not defined after updating to 3.4.0
3 participants