mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 10:15:41 +00:00
Bug 1127443 - Don't mark objects created by JS_NewObjectWithGivenProto as having unknown properties.
This commit is contained in:
parent
0743c11f2d
commit
a6389d4e2f
@ -2066,10 +2066,7 @@ JS_NewObjectWithGivenProto(JSContext *cx, const JSClass *jsclasp, HandleObject p
|
|||||||
MOZ_ASSERT(clasp != &JSFunction::class_);
|
MOZ_ASSERT(clasp != &JSFunction::class_);
|
||||||
MOZ_ASSERT(!(clasp->flags & JSCLASS_IS_GLOBAL));
|
MOZ_ASSERT(!(clasp->flags & JSCLASS_IS_GLOBAL));
|
||||||
|
|
||||||
JSObject *obj = NewObjectWithGivenProto(cx, clasp, proto, parent);
|
return NewObjectWithGivenProto(cx, clasp, proto, parent);
|
||||||
if (obj)
|
|
||||||
MarkTypeObjectUnknownProperties(cx, obj->type());
|
|
||||||
return obj;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
JS_PUBLIC_API(JSObject *)
|
JS_PUBLIC_API(JSObject *)
|
||||||
|
Loading…
Reference in New Issue
Block a user