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

Various Interop fixes #1063

Merged
merged 5 commits into from Jan 24, 2022
Merged

Various Interop fixes #1063

merged 5 commits into from Jan 24, 2022

Conversation

KurtGokhan
Copy link
Contributor

I am not sure about the Dictionary accessor. It now uses TryGetValue instead of using Item and expecting it to throw error when a key is missing. That makes more sense to me logically. But there is this case:

https://github.com/sebastienros/jint/compare/main...KurtGokhan:interop-fixes?expand=1#diff-6f0fbc1958b9b5e571672e8b8c8795a77ac611e89ee8bf7fbe31d2d1eb476942R145

I am not sure if the result should be undefined or 0 here.

@lahma lahma merged commit 6d53805 into sebastienros:main Jan 24, 2022
@lahma
Copy link
Collaborator

lahma commented Jan 24, 2022

Thank you for this! Couldn't spot anything bad logic-wise and think the returning undefined is natural for missing member like JS does, we can revisit when someone finds a problem with the logic 😉

@KurtGokhan KurtGokhan deleted the interop-fixes branch January 24, 2022 08:50
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.

None yet

2 participants