JSValue JSPlugin::nameGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot) { JSPlugin* thisObj = static_cast<JSPlugin*>(asObject(slot.slotBase())); return toJS(exec, thisObj->impl()->namedItem(propertyName)); }
JSValue* JSPlugin::indexGetter(ExecState* exec, JSObject* originalObject, const Identifier& propertyName, const PropertySlot& slot) { JSPlugin* thisObj = static_cast<JSPlugin*>(slot.slotBase()); return toJS(exec, static_cast<Plugin*>(thisObj->impl())->item(slot.index())); }