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

Dictionary.ContainsKey can return undefined instead of false #953

Closed
Jand42 opened this Issue May 28, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@Jand42
Member

Jand42 commented May 28, 2018

ContainsKey proxy is here:
https://github.com/dotnet-websharper/core/blob/master/src/stdlib/WebSharper.Main.Proxies/Dictionary.fs#L201-L209

The if As<bool> d then is optimized away to d &&, and if d is undefined that will be the return value too.

Original report: https://forums.websharper.com/topic/85276

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment