Get new object empty shapes with a common hash table, bug 701509.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user