Ignore:
Timestamp:
Dec 27, 2005, 12:02:01 PM (19 years ago)
Author:
andersca
Message:

2005-12-27 Anders Carlsson <[email protected]>

Reviewed by Darin.

  • kjs/array_object.cpp: (ArrayProtoFunc::callAsFunction): Implement filter and map. Also, make the existing array iteration functions not invoke the callback for non-existing properties, just as Mozilla does now.
  • kjs/array_object.h: (KJS::ArrayProtoFunc::): Add filter and map.
  • tests/mozilla/expected.html: Update, two 1.6 tests now pass.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/array_object.h

    r11659 r11785  
    4646    enum { ToString, ToLocaleString, Concat, Join, Pop, Push,
    4747          Reverse, Shift, Slice, Sort, Splice, UnShift,
    48           Every, ForEach, Some, IndexOf };
     48          Every, ForEach, Some, IndexOf, Filter, Map };
    4949  private:
    5050    int id;
Note: See TracChangeset for help on using the changeset viewer.