Join function objects where possible (471214, r=igor).

This commit is contained in:
Brendan Eich
2009-08-25 23:42:37 -07:00
parent d12fa85b78
commit 2efbe9456c
17 changed files with 528 additions and 188 deletions

View File

@@ -791,7 +791,7 @@ array_getProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp)
if (prop) {
if (OBJ_IS_NATIVE(obj2)) {
sprop = (JSScopeProperty *) prop;
if (!js_NativeGet(cx, obj, obj2, sprop, vp))
if (!js_NativeGet(cx, obj, obj2, sprop, JSGET_METHOD_BARRIER, vp))
return JS_FALSE;
}
obj2->dropProperty(cx, prop);