As this number is not a valid array index, setting it on an
object will store it in the property table.
Avoids a crash in tst_qjsengine.
Change-Id: Idfacde241609e4818d9da79c35705219c733e50d
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
{
uint hash = str->hashValue();
- if (str->subtype >= String::StringType_UInt)
+ if (str->subtype == String::StringType_ArrayIndex)
return;
str->identifier = new Identifier;
if (str->identifier)
return str->identifier;
uint hash = str->hashValue();
- if (str->subtype >= String::StringType_UInt)
+ if (str->subtype == String::StringType_ArrayIndex)
return 0;
uint idx = hash % alloc;