Get new object empty shapes with a common hash table, bug 701509.

This commit is contained in:
Brian Hackett
2011-11-10 17:50:05 -08:00
parent c918ed606d
commit b58540799b
22 changed files with 292 additions and 391 deletions

View File

@@ -413,8 +413,8 @@ NewIteratorObject(JSContext *cx, uintN flags)
if (!type)
return NULL;
Shape *emptyEnumeratorShape = BaseShape::lookupInitialShape(cx, &IteratorClass, NULL,
FINALIZE_OBJECT2);
Shape *emptyEnumeratorShape = EmptyShape::lookupInitialShape(cx, &IteratorClass, NULL, NULL,
FINALIZE_OBJECT2);
if (!emptyEnumeratorShape)
return NULL;