JSValue jsTestInterfaceImplementsStr2(ExecState* exec, JSValue slotBase, PropertyName) { JSTestInterface* castedThis = jsCast<JSTestInterface*>(asObject(slotBase)); UNUSED_PARAM(exec); TestInterface* impl = static_cast<TestInterface*>(castedThis->impl()); JSValue result = jsStringWithCache(exec, impl->implementsStr2()); return result; }