I just stumbled upon this:
var v = Array<var>();
v.isArray(); // true
v.isObject(); // true
v.getObject(); // NULL
It’s because VariantType_Array
inherits from VariantType_Object
. Is this intended? I figure it might be, to be consistent with JavaScript. In any case, getting true
from isObject()
and then NULL
from getObject()
is really surprising.