diff --git a/js/src/jsapi.c b/js/src/jsapi.c index 97c42fff64b..209b1ecc7c9 100644 --- a/js/src/jsapi.c +++ b/js/src/jsapi.c @@ -614,9 +614,7 @@ JS_TypeOfValue(JSContext *cx, jsval v) { clasp = OBJ_GET_CLASS(cx, obj); if ((ops == &js_ObjectOps) - ? (clasp->call - ? clasp == &js_RegExpClass - : clasp == &js_FunctionClass) + ? clasp == &js_FunctionClass : ops->call != NULL) { type = JSTYPE_FUNCTION; } else {