Bug 881102 - Propagate exceptions in object metadata callback, r=luke.
This commit is contained in:
@@ -378,8 +378,12 @@ NewPropertyIteratorObject(JSContext *cx, unsigned flags)
|
||||
if (!type)
|
||||
return NULL;
|
||||
|
||||
JSObject *metadata = NULL;
|
||||
if (!NewObjectMetadata(cx, &metadata))
|
||||
return NULL;
|
||||
|
||||
Class *clasp = &PropertyIteratorObject::class_;
|
||||
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, NULL, NULL, NewObjectMetadata(cx),
|
||||
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, NULL, NULL, metadata,
|
||||
ITERATOR_FINALIZE_KIND));
|
||||
if (!shape)
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user