extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Boolean in Utilities has unintended functionality due to Casting.

Open NexusKitten opened this issue 8 months ago • 2 comments

The following block has possibly unintended functionality due to not casting the input to a boolean before returning:

https://github.com/TurboWarp/extensions/blob/f9a53719e4de123c2a2cae43db1dcb264bc8f7bb/extensions/utilities.js#L384-L386

NexusKitten avatar Feb 27 '25 15:02 NexusKitten

could just be acting as a coupler? not really a cast

CST1229 avatar Feb 27 '25 20:02 CST1229

could just be acting as a coupler? not really a cast

It is acting as a coupler. Regardless, it doesn't make much sense for a boolean to return anything other than true/false

NexusKitten avatar Feb 27 '25 20:02 NexusKitten