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

fix(sdk): get methods on maps are returning undefined on inexistent keys #4317

Closed
wants to merge 3 commits into from

Conversation

WeepingClown13
Copy link
Collaborator

@WeepingClown13 WeepingClown13 commented Sep 27, 2023

Currently writing map tests and came across this. And I remember this conversation so I changed the methods to throw errors instead.

Checklist

  • Title matches Winglang's style guide
  • Description explains motivation and solution
  • Tests added (always)
  • Docs updated (only required for features)
  • Added pr/e2e-full label if this feature requires end-to-end testing

By submitting this pull request, I confirm that my contribution is made under the terms of the Wing Cloud Contribution License.

@WeepingClown13 WeepingClown13 requested a review from a team as a code owner September 27, 2023 20:13
@monadabot
Copy link
Contributor

Console preview environment is available at https://wing-console-pr-4317.fly.dev 🚀

Updated (UTC): 2023-09-27 20:20

@WeepingClown13
Copy link
Collaborator Author

WeepingClown13 commented Sep 27, 2023

closed as I realised #3771 exists, although it's quite behind on the updates. I just tried to add it as I was writing the tests and came across this scenario, but if there was an issue already and someone working on it, fair enough. First come, first served!

edit: accidentally referenced something else first xD

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