dotnet-websharper / core

WebSharper - Full-stack, functional, reactive web apps and microservices in F# and C#
https://websharper.com
Apache License 2.0
589 stars 52 forks source link

'Bitwise not' operation is broken #1407

Open endeavour opened 3 months ago

endeavour commented 3 months ago

It seems like the following commit has broken bitwise not operations in the compiled javascript: https://github.com/dotnet-websharper/core/commit/58f9fcda175a022dfce73ac59b281ca318188df2

Let's consider: Console.Log(~~~1000)

Before that commit it correctly printed -1001

From that commit onwards it prints false.