core icon indicating copy to clipboard operation
core copied to clipboard

'Bitwise not' operation is broken

Open endeavour opened this issue 10 months ago • 0 comments

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.

endeavour avatar Apr 21 '24 11:04 endeavour