void JSTestEventConstructorOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context) { JSTestEventConstructor* jsTestEventConstructor = jsCast<JSTestEventConstructor*>(handle.slot()->asCell()); DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context); uncacheWrapper(world, &jsTestEventConstructor->impl(), jsTestEventConstructor); jsTestEventConstructor->releaseImpl(); }
JSValue jsTestEventConstructorAttr2(ExecState* exec, JSValue slotBase, const Identifier&) { JSTestEventConstructor* castedThis = static_cast<JSTestEventConstructor*>(asObject(slotBase)); UNUSED_PARAM(exec); TestEventConstructor* impl = static_cast<TestEventConstructor*>(castedThis->impl()); JSValue result = jsString(exec, impl->attr2()); return result; }
JSValue jsTestEventConstructorAttr2(ExecState* exec, JSValue slotBase, PropertyName) { JSTestEventConstructor* castedThis = jsCast<JSTestEventConstructor*>(asObject(slotBase)); UNUSED_PARAM(exec); TestEventConstructor* impl = static_cast<TestEventConstructor*>(castedThis->impl()); JSValue result = jsStringWithCache(exec, impl->attr2()); return result; }
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName) { JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase)); UNUSED_PARAM(exec); TestEventConstructor& impl = castedThis->impl(); JSValue result = jsStringWithCache(exec, impl.attr2()); return JSValue::encode(result); }
EncodedJSValue jsTestEventConstructorAttr2(ExecState* exec, JSObject* slotBase, EncodedJSValue thisValue, PropertyName) { JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue)); if (UNLIKELY(!castedThis)) { if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase)) return reportDeprecatedGetterError(*exec, "TestEventConstructor", "attr2"); return throwGetterTypeError(*exec, "TestEventConstructor", "attr2"); } TestEventConstructor& impl = castedThis->impl(); JSValue result = jsStringWithCache(exec, impl.attr2()); return JSValue::encode(result); }
EncodedJSValue jsTestEventConstructorAttr1(ExecState* state, JSObject* slotBase, EncodedJSValue thisValue, PropertyName) { UNUSED_PARAM(state); UNUSED_PARAM(slotBase); UNUSED_PARAM(thisValue); JSTestEventConstructor* castedThis = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(thisValue)); if (UNLIKELY(!castedThis)) { if (jsDynamicCast<JSTestEventConstructorPrototype*>(slotBase)) return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr1"); return throwGetterTypeError(*state, "TestEventConstructor", "attr1"); } auto& impl = castedThis->wrapped(); JSValue result = jsStringWithCache(state, impl.attr1()); return JSValue::encode(result); }
static inline JSValue jsTestEventConstructorAttr3Getter(ExecState& state, JSTestEventConstructor& thisObject, ThrowScope& throwScope) { UNUSED_PARAM(throwScope); UNUSED_PARAM(state); auto& impl = thisObject.wrapped(); JSValue result = toJS<IDLDOMString>(state, impl.attr3()); return result; }
JSValue jsTestEventConstructorConstructor(ExecState* exec, JSValue slotBase, PropertyName) { JSTestEventConstructor* domObject = jsCast<JSTestEventConstructor*>(asObject(slotBase)); return JSTestEventConstructor::getConstructor(exec, domObject->globalObject()); }
JSValue jsTestEventConstructorConstructor(ExecState* exec, JSValue slotBase, const Identifier&) { JSTestEventConstructor* domObject = static_cast<JSTestEventConstructor*>(asObject(slotBase)); return JSTestEventConstructor::getConstructor(exec, domObject->globalObject()); }
EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, EncodedJSValue slotBase, EncodedJSValue, PropertyName) { JSTestEventConstructor* domObject = jsDynamicCast<JSTestEventConstructor*>(JSValue::decode(slotBase)); return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject())); }