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

ref Object from globalThis in speed-optimized code for serializing map fields #611

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

lesomnus
Copy link
Contributor

@lesomnus lesomnus commented Nov 28, 2023

fixes #610

The generated code references the global Object (e.g. Object.keys) without explicitly referencing 'globalThis.' Therefore, if there is a message named 'Object,' issue arises due to incorrect reference (see details at #610). I modified it to access Object through globalThis.

Copy link
Owner

@timostamm timostamm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@timostamm timostamm changed the title ref Object from globalThis ref Object from globalThis in speed-optimized code for serializing map fields Dec 4, 2023
@timostamm timostamm merged commit 63766cd into timostamm:main Dec 4, 2023
1 check passed
@timostamm
Copy link
Owner

Released in v2.9.2.

@lesomnus lesomnus deleted the fix/ref-global-object branch December 5, 2023 11:21
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.

Global Object is not referenced when there is a message named Object.
2 participants