EncodedJSValue JSC_HOST_CALL jsTestJSBuiltinConstructorPrototypeFunctionTestCustomFunction(ExecState* state) { JSValue thisValue = state->thisValue(); JSTestJSBuiltinConstructor* castedThis = jsDynamicCast<JSTestJSBuiltinConstructor*>(thisValue); if (UNLIKELY(!castedThis)) return throwThisTypeError(*state, "TestJSBuiltinConstructor", "testCustomFunction"); ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestJSBuiltinConstructor::info()); return JSValue::encode(castedThis->testCustomFunction(*state)); }
void setJSTestJSBuiltinConstructorTestAttributeRWCustom(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) { JSValue value = JSValue::decode(encodedValue); UNUSED_PARAM(thisValue); JSTestJSBuiltinConstructor* castedThis = jsDynamicCast<JSTestJSBuiltinConstructor*>(JSValue::decode(thisValue)); if (UNLIKELY(!castedThis)) { throwSetterTypeError(*state, "TestJSBuiltinConstructor", "testAttributeRWCustom"); return; } castedThis->setTestAttributeRWCustom(*state, value); }
static inline bool setJSTestJSBuiltinConstructorTestAttributeRWCustomSetter(ExecState& state, JSTestJSBuiltinConstructor& thisObject, JSValue value, ThrowScope& throwScope) { UNUSED_PARAM(throwScope); thisObject.setTestAttributeRWCustom(state, value); return true; }
static inline JSValue jsTestJSBuiltinConstructorTestAttributeRWCustomGetter(ExecState& state, JSTestJSBuiltinConstructor& thisObject, ThrowScope& throwScope) { UNUSED_PARAM(throwScope); UNUSED_PARAM(state); return thisObject.testAttributeRWCustom(state); }