typeof() erroneously behaves the same way as type()
Closed this issue · 2 comments
zaiisao commented
typeof()
, a function exclusive to Luau, seems to behave similarly or identical to type()
, which should not be the case.
One example is to feed an instance to typeof
, like typeof(Instance.new("DataModel"))
; this should return Instance
but userdata
is printed instead.
filiptibell commented
Marked this as a bug since we definitely want behavior to be consistent here, but really it is just because we haven't implemented any special handling for typeof
and our custom userdatas.
filiptibell commented
Fixed for next release in 151d8cc