Remove direct class pointer from JSObject, bug 690133.
This commit is contained in:
@@ -418,7 +418,7 @@ NewIteratorObject(JSContext *cx, uintN flags)
|
||||
EmptyShape *emptyEnumeratorShape = EmptyShape::getEmptyEnumeratorShape(cx);
|
||||
if (!emptyEnumeratorShape)
|
||||
return NULL;
|
||||
obj->init(cx, &IteratorClass, &types::emptyTypeObject, NULL, NULL, false);
|
||||
obj->init(cx, &types::emptyTypeObject, NULL, NULL, false);
|
||||
obj->setMap(emptyEnumeratorShape);
|
||||
return obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user