lemur icon indicating copy to clipboard operation
lemur copied to clipboard

Color3 doesn't check the argument's types

Open Kampfkarren opened this issue 6 years ago • 3 comments

Fun fact, did you know Roblox doesn't either?

> print(Color3.new("Doge"))
0, 0, 0
> print(Color3.new("Doge", "is", "Funny"))
0, 0, 0

Kampfkarren avatar Aug 21 '18 21:08 Kampfkarren

But Color3 calls tonumber on the arguments. Try Color3.new("0xFF").

Kampfkarren avatar Aug 21 '18 22:08 Kampfkarren

Wow, that's kind of terrible. Totally comfortable making Lemur more strict in cases like this.

LPGhatguy avatar Aug 22 '18 05:08 LPGhatguy

I think the tonumber functionality (is that even intentional?) should work, but other than that axe it.

Kampfkarren avatar Aug 22 '18 13:08 Kampfkarren