Bug 1127443 - Don't mark objects created by JS_NewObjectWithGivenProto as having unknown properties.

This commit is contained in:
Tom Schuster 2015-01-31 16:18:51 +01:00
parent 0743c11f2d
commit a6389d4e2f

View File

@ -2066,10 +2066,7 @@ JS_NewObjectWithGivenProto(JSContext *cx, const JSClass *jsclasp, HandleObject p
MOZ_ASSERT(clasp != &JSFunction::class_);
MOZ_ASSERT(!(clasp->flags & JSCLASS_IS_GLOBAL));
JSObject *obj = NewObjectWithGivenProto(cx, clasp, proto, parent);
if (obj)
MarkTypeObjectUnknownProperties(cx, obj->type());
return obj;
return NewObjectWithGivenProto(cx, clasp, proto, parent);
}
JS_PUBLIC_API(JSObject *)