Fix from brendan for propertyIsEnumerable having an inconsistent return type.
This commit is contained in:
@@ -543,7 +543,7 @@ js_Object_p_propertyIsEnumerable(JSContext* cx, JSObject* obj, JSString *str)
|
||||
{
|
||||
jsval v;
|
||||
if (!js_PropertyIsEnumerable(cx, obj, ATOM_TO_JSID(str), &v))
|
||||
return -1;
|
||||
return JSVAL_TO_BOOLEAN(JSVAL_VOID);
|
||||
JS_ASSERT(JSVAL_IS_BOOLEAN(v));
|
||||
return JSVAL_TO_BOOLEAN(v);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user