src/script/bridge/qscriptactivationobject.cpp
changeset 30 5dc02b23752f
parent 18 2f34d5167611
child 37 758a864f9613
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
    61     if (d_ptr()->delegate != 0)
    61     if (d_ptr()->delegate != 0)
    62         return d_ptr()->delegate->getOwnPropertySlot(exec, propertyName, slot);
    62         return d_ptr()->delegate->getOwnPropertySlot(exec, propertyName, slot);
    63     return JSC::JSVariableObject::getOwnPropertySlot(exec, propertyName, slot);
    63     return JSC::JSVariableObject::getOwnPropertySlot(exec, propertyName, slot);
    64 }
    64 }
    65 
    65 
    66 bool QScriptActivationObject::getPropertyAttributes(JSC::ExecState* exec, const JSC::Identifier& propertyName, unsigned& attributes) const
    66 bool QScriptActivationObject::getOwnPropertyDescriptor(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::PropertyDescriptor& descriptor)
    67 {
    67 {
    68     if (d_ptr()->delegate != 0)
    68     if (d_ptr()->delegate != 0)
    69         return d_ptr()->delegate->getPropertyAttributes(exec, propertyName, attributes);
    69         return d_ptr()->delegate->getOwnPropertyDescriptor(exec, propertyName, descriptor);
    70     return JSC::JSVariableObject::getPropertyAttributes(exec, propertyName, attributes);
    70     return JSC::JSVariableObject::getOwnPropertyDescriptor(exec, propertyName, descriptor);
    71 }
    71 }
    72 
    72 
    73 void QScriptActivationObject::getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, bool includeNonEnumerable)
    73 void QScriptActivationObject::getOwnPropertyNames(JSC::ExecState* exec, JSC::PropertyNameArray& propertyNames, JSC::EnumerationMode mode)
    74 {
    74 {
    75     if (d_ptr()->delegate != 0) {
    75     if (d_ptr()->delegate != 0) {
    76         d_ptr()->delegate->getOwnPropertyNames(exec, propertyNames, includeNonEnumerable);
    76         d_ptr()->delegate->getOwnPropertyNames(exec, propertyNames, mode);
    77         return;
    77         return;
    78     }
    78     }
    79     return JSC::JSVariableObject::getOwnPropertyNames(exec, propertyNames, includeNonEnumerable);
    79     return JSC::JSVariableObject::getOwnPropertyNames(exec, propertyNames, mode);
    80 }
    80 }
    81 
    81 
    82 void QScriptActivationObject::putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
    82 void QScriptActivationObject::putWithAttributes(JSC::ExecState *exec, const JSC::Identifier &propertyName, JSC::JSValue value, unsigned attributes)
    83 {
    83 {
    84     if (d_ptr()->delegate != 0) {
    84     if (d_ptr()->delegate != 0) {
   109         return;
   109         return;
   110     }
   110     }
   111     JSC::JSVariableObject::put(exec, propertyName, value);
   111     JSC::JSVariableObject::put(exec, propertyName, value);
   112 }
   112 }
   113 
   113 
   114 bool QScriptActivationObject::deleteProperty(JSC::ExecState* exec, const JSC::Identifier& propertyName, bool checkDontDelete)
   114 bool QScriptActivationObject::deleteProperty(JSC::ExecState* exec, const JSC::Identifier& propertyName)
   115 {
   115 {
   116     if (d_ptr()->delegate != 0)
   116     if (d_ptr()->delegate != 0)
   117         return d_ptr()->delegate->deleteProperty(exec, propertyName, checkDontDelete);
   117         return d_ptr()->delegate->deleteProperty(exec, propertyName);
   118     return JSC::JSVariableObject::deleteProperty(exec, propertyName, checkDontDelete);
   118     return JSC::JSVariableObject::deleteProperty(exec, propertyName);
   119 }
   119 }
   120 
   120 
   121 void QScriptActivationObject::defineGetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction)
   121 void QScriptActivationObject::defineGetter(JSC::ExecState* exec, const JSC::Identifier& propertyName, JSC::JSObject* getterFunction)
   122 {
   122 {
   123     if (d_ptr()->delegate != 0)
   123     if (d_ptr()->delegate != 0)