EncodedJSValue jsTestEventConstructorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName, JSObject*) { JSTestEventConstructorPrototype* domObject = jsDynamicCast<JSTestEventConstructorPrototype*>(JSValue::decode(thisValue)); if (UNLIKELY(!domObject)) return throwVMTypeError(state); return JSValue::encode(JSTestEventConstructor::getConstructor(state->vm(), domObject->globalObject())); }
EncodedJSValue jsTestEventConstructorConstructor(ExecState* exec, JSObject* baseValue, EncodedJSValue, PropertyName) { JSTestEventConstructorPrototype* domObject = jsDynamicCast<JSTestEventConstructorPrototype*>(baseValue); if (!domObject) return throwVMTypeError(exec); return JSValue::encode(JSTestEventConstructor::getConstructor(exec->vm(), domObject->globalObject())); }
EncodedJSValue jsTestEventConstructorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) { VM& vm = state->vm(); auto throwScope = DECLARE_THROW_SCOPE(vm); JSTestEventConstructorPrototype* domObject = jsDynamicDowncast<JSTestEventConstructorPrototype*>(JSValue::decode(thisValue)); if (UNLIKELY(!domObject)) return throwVMTypeError(state, throwScope); return JSValue::encode(JSTestEventConstructor::getConstructor(state->vm(), domObject->globalObject())); }