| changeset 156 | 0d28dc5af6c7 |
| parent 155 | 7926a7921fa3 |
| child 157 | b760e8cb29a8 |
1.1 --- a/src/BytecodeCompiler.cpp Sun Aug 05 00:45:06 2012 -0700 1.2 +++ b/src/BytecodeCompiler.cpp Sun Aug 05 00:49:31 2012 -0700 1.3 @@ -744,6 +744,13 @@ 1.4 if (!map) 1.5 return NULL; 1.6 1.7 + // Ensure the inner type has an array map if needed. 1.8 + if (type->contained()->isArray()) { 1.9 + Local<Type> contained(zone, type->contained()); 1.10 + if (!BuildArrayMap(zone, contained)) 1.11 + return NULL; 1.12 + } 1.13 + 1.14 type->setNewMap(map); 1.15 return map; 1.16 }