Skip to content

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
@timostamm
Copy link
Owner

Released in v2.9.2.

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