EncodedJSValue jsTestCustomNamedGetterConstructor(ExecState* state, JSObject*, EncodedJSValue thisValue, PropertyName) { JSTestCustomNamedGetter* domObject = jsDynamicCast<JSTestCustomNamedGetter*>(JSValue::decode(thisValue)); if (!domObject) return throwVMTypeError(state); return JSValue::encode(JSTestCustomNamedGetter::getConstructor(state->vm(), domObject->globalObject())); }
JSValue jsTestCustomNamedGetterConstructor(ExecState* exec, JSValue slotBase, PropertyName) { JSTestCustomNamedGetter* domObject = jsCast<JSTestCustomNamedGetter*>(asObject(slotBase)); return JSTestCustomNamedGetter::getConstructor(exec, domObject->globalObject()); }