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

BAAS-26308: Add StringifyError to Exception struct #108

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

tcannon91
Copy link

No description provided.

Copy link

@UnicodeSnowman UnicodeSnowman left a comment

Choose a reason for hiding this comment

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

👏

runtime_test.go Outdated

return testObject
},
expectedString: "{\"foo\":\"bar\",\"fizz\":\"buzz\"}",

Choose a reason for hiding this comment

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

[q] are goja objects always ordered? just want to make sure the keys in this string will always be in the same order.

Copy link
Author

Choose a reason for hiding this comment

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

I am looking to see if I can figure this out definitively. Anecdotally, I ran the tests with -count=30 and did not see any changes in the order.

Choose a reason for hiding this comment

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

good enough for me

Copy link
Author

Choose a reason for hiding this comment

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

It uses a go map under the hood, whose iteration order is not guaranteed. I think I will try to update this. Probably just going to break it into a separate test and get a little clever with the string comparison.

Copy link
Author

Choose a reason for hiding this comment

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

Got a new test up there, let me know what you think

Copy link

@UnicodeSnowman UnicodeSnowman left a comment

Choose a reason for hiding this comment

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

solid, LGTM

@tcannon91 tcannon91 merged commit 2e43f7e into mongodb-forks:realm Dec 7, 2023
2 of 6 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.

2 participants