Ignore:
Timestamp:
Jun 28, 2008, 10:38:37 PM (17 years ago)
Author:
Darin Adler
Message:

JavaScriptCore:

2008-06-28 Darin Adler <Darin Adler>

Reviewed by Sam and Cameron.

Test: fast/js/array-holes.html

  • kjs/ArrayPrototype.cpp: (KJS::arrayProtoFuncConcat): Changed to use getProperty instead of JSArray::getItem -- need to handle properties from the prototype chain instead of ignoring them.
  • kjs/JSArray.cpp: Removed getItem.
  • kjs/JSArray.h: Ditto.

WebCore:

2008-06-28 Darin Adler <Darin Adler>

Reviewed by Sam and Cameron.

  • bridge/jni/jni_utility.cpp: (KJS::Bindings::convertArrayInstanceToJavaArray): Use get instead of getItem, since we always want to consider values from the prototypes when looking at JavaScript arrays.

LayoutTests:

2008-06-28 Darin Adler <Darin Adler>

Reviewed by Sam and Cameron.

  • fast/js/array-holes-expected.txt: Added.
  • fast/js/array-holes.html: Added.
  • fast/js/resources/array-holes.js: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r34842 r34868  
    277277__ZNK3KJS6JSCell9getUInt32ERj
    278278__ZNK3KJS7ArgList8getSliceEiRS0_
    279 __ZNK3KJS7JSArray7getItemEj
    280279__ZNK3KJS7JSValue15toInt32SlowCaseEPNS_9ExecStateERb
    281280__ZNK3KJS7JSValue16toUInt32SlowCaseEPNS_9ExecStateERb
Note: See TracChangeset for help on using the changeset viewer.