Bug 513428 - Ignore transparent wrappers when deciding if something is an array or not. r=brendan

This commit is contained in:
Blake Kaplan
2009-09-10 14:51:45 -07:00
parent 9a96a55ee7
commit 7e19fda992
2 changed files with 2 additions and 2 deletions

View File

@@ -3317,7 +3317,7 @@ array_isArray(JSContext *cx, uintN argc, jsval *vp)
{
*vp = BOOLEAN_TO_JSVAL(argc > 0 &&
!JSVAL_IS_PRIMITIVE(vp[2]) &&
OBJ_IS_ARRAY(cx, JSVAL_TO_OBJECT(vp[2])));
OBJ_IS_ARRAY(cx, js_GetWrappedObject(cx, JSVAL_TO_OBJECT(vp[2]))));
return JS_TRUE;
}