js_GetMethod shouldn't detect (501229, r=jorendorff).

This commit is contained in:
Andreas Gal
2009-06-29 15:19:37 -07:00
parent 35622a6c07
commit a4f8b638af
2 changed files with 2 additions and 2 deletions

View File

@@ -4344,6 +4344,8 @@ JSBool
js_GetMethod(JSContext *cx, JSObject *obj, jsid id, JSBool cacheResult,
jsval *vp)
{
JSAutoResolveFlags rf(cx, JSRESOLVE_QUALIFIED);
if (obj->map->ops == &js_ObjectOps ||
obj->map->ops->getProperty == js_GetProperty) {
return js_GetPropertyHelper(cx, obj, id, cacheResult, vp);