Changeset 21473 in webkit


Ignore:
Timestamp:
May 14, 2007 6:53:54 PM (17 years ago)
Author:
bdash
Message:

2007-05-14 Kimmo Kinnunen <Kimmo Kinnunen>

Reviewed by Darin.

  • kjs/nodes2string.cpp: (ArrayNode::streamTo): print extra ',' in case there was elision commas (check opt member var) and array elements present in the array expression

2007-05-14 Kimmo Kinnunen <Kimmo Kinnunen>

Reviewed by Darin.

  • fast/js/resources/toString-elision-trailing-comma.js: Added.
  • fast/js/toString-elision-trailing-comma-expected.txt: Added.
  • fast/js/toString-elision-trailing-comma.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r21468 r21473  
     12007-05-14  Kimmo Kinnunen  <kimmok@iki.fi>
     2
     3        Reviewed by Darin.
     4
     5        - Fixes http://bugs.webkit.org/show_bug.cgi?id=13622 (Decompiler
     6          omits trailing comma in array literal)
     7
     8         * kjs/nodes2string.cpp:
     9         (ArrayNode::streamTo): print extra ',' in case there was elision
     10         commas (check opt member var) and array elements present
     11         in the array expression
     12
    1132007-05-14  Geoffrey Garen  <ggaren@apple.com>
    214
  • trunk/JavaScriptCore/kjs/nodes2string.cpp

    r21409 r21473  
    178178  for (int i = 0; i < elision; i++)
    179179    s << ",";
     180  // Parser consumes one elision comma if there's array elements
     181  // present in the expression.
     182  if (opt && element)
     183    s << ",";
    180184  s << "]";
    181185}
  • trunk/LayoutTests/ChangeLog

    r21472 r21473  
     12007-05-14  Kimmo Kinnunen  <kimmok@iki.fi>
     2
     3        Reviewed by Darin.
     4
     5        - Tests for fix to http://bugs.webkit.org/show_bug.cgi?id=13622 (Decompiler omits
     6          trailing comma in array literal)
     7
     8        * fast/js/resources/toString-elision-trailing-comma.js: Added.
     9        * fast/js/toString-elision-trailing-comma-expected.txt: Added.
     10        * fast/js/toString-elision-trailing-comma.html: Added.
     11
    1122007-05-14  Mitz Pettel  <mitz@webkit.org>
    213
Note: See TracChangeset for help on using the changeset viewer.