[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

@@ -1109,7 +1109,7 @@ js_InitNumberClass(JSContext *cx, JSObject *obj)
return NULL;
proto->setPrimitiveThis(Int32Value(0));
if (!JS_DefineFunctionsWithPrefix(cx, obj, number_functions, js_Number_str))
if (!JS_DefineFunctions(cx, obj, number_functions))
return NULL;
if (!JS_DefineConstDoubles(cx, ctor, number_constants))