Bug 850026 - Allow metadata objects to be associated with JS objects, and add a hook for attaching metadata to newly created objects, r=luke.

This commit is contained in:
Brian Hackett
2013-05-30 17:37:22 -06:00
parent 62f47c740b
commit acb32076ea
21 changed files with 329 additions and 68 deletions

View File

@@ -378,7 +378,7 @@ NewPropertyIteratorObject(JSContext *cx, unsigned flags)
return NULL;
Class *clasp = &PropertyIteratorObject::class_;
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, NULL, NULL,
RootedShape shape(cx, EmptyShape::getInitialShape(cx, clasp, NULL, NULL, NewObjectMetadata(cx),
ITERATOR_FINALIZE_KIND));
if (!shape)
return NULL;