ClassHasPropertyFunction

typealias ClassHasPropertyFunction = (jscClass: Class, context: Context, <Error class: unknown class>?, name: String) -> Boolean

The type of has_property in #JSCClassVTable. This is only required when you need to handle external properties not added to the prototype.

  • param jscClass a #JSCClass

  • param context a #JSCContext

  • param instance the @jsc_class instance

  • param name the property name

  • return true if @instance has a property with @name or false to forward the request to the parent class or prototype chain.