Ignore:
Timestamp:
Jun 20, 2005, 2:59:39 PM (20 years ago)
Author:
mjs
Message:

JavaScriptCore:

Patch from Mark Rowe <[email protected]>, reviewed by me.

Test cases added:

  • tests/mozilla/expected.html: Updated for two fixed tests.
  • also added a layout test
  • bindings/objc/objc_runtime.h:
  • bindings/objc/objc_runtime.mm: (ObjcFallbackObjectImp::hasOwnProperty):
  • bindings/runtime_array.cpp: (RuntimeArrayImp::hasOwnProperty):
  • bindings/runtime_array.h:
  • bindings/runtime_object.cpp: (RuntimeObjectImp::hasOwnProperty):
  • bindings/runtime_object.h:
  • kjs/array_instance.h:
  • kjs/array_object.cpp: (ArrayInstanceImp::hasOwnProperty):
  • kjs/function.cpp: (KJS::FunctionImp::hasOwnProperty): (KJS::ActivationImp::hasOwnProperty):
  • kjs/function.h:
  • kjs/object.cpp: (KJS::ObjectImp::hasProperty): (KJS::ObjectImp::hasOwnProperty):
  • kjs/object.h: (KJS::Object::hasOwnProperty):
  • kjs/object_object.cpp: (ObjectPrototypeImp::ObjectPrototypeImp): (ObjectProtoFuncImp::call):
  • kjs/object_object.h: (KJS::ObjectProtoFuncImp::):
  • kjs/string_object.cpp: (StringInstanceImp::hasOwnProperty):
  • kjs/string_object.h:

WebCore:

Patch from Mark Rowe <[email protected]>, reviewed by me.

Test cases added:

  • layout-tests/fast/js/hasOwnProperty-expected.txt: Added.
  • layout-tests/fast/js/hasOwnProperty.html: Added.
  • also fixed two mozilla JS tests
  • khtml/ecma/kjs_binding.h:
  • khtml/ecma/kjs_css.cpp: (KJS::DOMCSSStyleDeclaration::hasOwnProperty):
  • khtml/ecma/kjs_css.h:
  • khtml/ecma/kjs_dom.cpp: (KJS::DOMNodeList::hasOwnProperty): (KJS::DOMNamedNodeMap::hasOwnProperty):
  • khtml/ecma/kjs_dom.h:
  • khtml/ecma/kjs_html.cpp: (KJS::HTMLDocument::hasOwnProperty): (KJS::KJS::HTMLElement::hasOwnProperty): (KJS::KJS::HTMLCollection::hasOwnProperty):
  • khtml/ecma/kjs_html.h:
  • khtml/ecma/kjs_window.cpp: (KJS::Window::hasOwnProperty): (KJS::Konqueror::hasOwnProperty):
  • khtml/ecma/kjs_window.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/function.cpp

    r9390 r9441  
    238238}
    239239
    240 bool FunctionImp::hasProperty(ExecState *exec, const Identifier &propertyName) const
     240bool FunctionImp::hasOwnProperty(ExecState *exec, const Identifier &propertyName) const
    241241{
    242242    if (propertyName == argumentsPropertyName || propertyName == lengthPropertyName)
    243243        return true;
    244     return InternalFunctionImp::hasProperty(exec, propertyName);
     244    return InternalFunctionImp::hasOwnProperty(exec, propertyName);
    245245}
    246246
     
    358358}
    359359
    360 bool ActivationImp::hasProperty(ExecState *exec, const Identifier &propertyName) const
     360bool ActivationImp::hasOwnProperty(ExecState *exec, const Identifier &propertyName) const
    361361{
    362362    if (propertyName == argumentsPropertyName)
    363363        return true;
    364     return ObjectImp::hasProperty(exec, propertyName);
     364    return ObjectImp::hasOwnProperty(exec, propertyName);
    365365}
    366366
Note: See TracChangeset for help on using the changeset viewer.