EncodedJSValue JSC_HOST_CALL jsTestInterfacePrototypeFunctionImplementsMethod1(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(JSTestInterface::info())) return throwVMTypeError(exec); JSTestInterface* castedThis = jsCast<JSTestInterface*>(asObject(thisValue)); ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestInterface::info()); TestInterface* impl = static_cast<TestInterface*>(castedThis->impl()); impl->implementsMethod1(); return JSValue::encode(jsUndefined()); }