$OpenBSD$ index 120e81e..ff864b1 100644 --- js/public/Class.h.orig Fri Feb 20 15:40:37 2015 +++ js/public/Class.h Fri Feb 20 15:40:37 2015 @@ -468,8 +468,12 @@ struct Class return flags & JSCLASS_EMULATES_UNDEFINED; } + bool isJSFunction() const { + return this == js::FunctionClassPtr; + } + bool isCallable() const { - return this == js::FunctionClassPtr || call; + return isJSFunction() || call; } bool isProxy() const {