Bug 505494 - Unwrap invisible wrappers when they're passed to Function.prototype.apply. r=mrbkap

This commit is contained in:
Atul Varma
2009-08-06 20:48:57 -07:00
parent 8937fa53ee
commit aadc37b956
2 changed files with 10 additions and 1 deletions

View File

@@ -581,7 +581,7 @@ js_IsArrayLike(JSContext *cx, JSObject *obj, JSBool *answerp, jsuint *lengthp)
{
JSClass *clasp;
clasp = OBJ_GET_CLASS(cx, obj);
clasp = OBJ_GET_CLASS(cx, js_GetWrappedObject(cx, obj));
*answerp = (clasp == &js_ArgumentsClass || clasp == &js_ArrayClass ||
clasp == &js_SlowArrayClass);
if (!*answerp) {