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

Do not cache hash values #2607

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Do not cache hash values #2607

merged 1 commit into from
Aug 2, 2024

Conversation

pepone
Copy link
Member

@pepone pepone commented Aug 2, 2024

JS fix for #1709

@@ -120,7 +120,7 @@ export function defineEnum(enumerators) {

Object.defineProperty(type, "valueOf", {
value: function (v) {
const enumerator = enums[v];
let enumerator = enums[v];
Copy link
Member Author

Choose a reason for hiding this comment

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

This fix is for an unrelated issue, the variable cannot be const as it is reasigned below to handle undefined enumerators.

This was caught because I was using a slice2js that still use the removed enumerators.

@pepone pepone merged commit 38da078 into zeroc-ice:main Aug 2, 2024
18 checks passed
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