[INFER] Move addTypeProperty barriers under obj->setProperty, obj->defineProperty, bug 619693.

This commit is contained in:
Brian Hackett
2011-05-16 16:15:37 -07:00
parent 1b301729b4
commit 44c831f085
35 changed files with 245 additions and 358 deletions

View File

@@ -2660,7 +2660,6 @@ js_InitDateClass(JSContext *cx, JSObject *obj)
jsid toGMTStringId = ATOM_TO_JSID(cx->runtime->atomState.toGMTStringAtom);
if (!js_GetProperty(cx, proto, toUTCStringId, toUTCStringFun.addr()))
return NULL;
cx->addTypePropertyId(proto->getType(), toGMTStringId, toUTCStringFun.value());
if (!js_DefineProperty(cx, proto, toGMTStringId, toUTCStringFun.addr(),
PropertyStub, StrictPropertyStub, 0)) {
return NULL;