Changeset 31149 in webkit for trunk/JavaScriptCore/kjs


Ignore:
Timestamp:
Mar 19, 2008, 12:18:09 AM (17 years ago)
Author:
[email protected]
Message:

2008-03-19 Mark Rowe <[email protected]>

Reviewed by Oliver Hunt.

Fix http://bugs.webkit.org/show_bug.cgi?id=17939
Bug 17939: Crash decompiling "const a = 1, b;"

  • kjs/nodes2string.cpp: (KJS::ConstDeclNode::streamTo): Null-check the correct variable.

2008-03-19 Mark Rowe <[email protected]>

Reviewed by Oliver Hunt.

Test for http://bugs.webkit.org/show_bug.cgi?id=17939
Bug 17939: Crash decompiling "const a = 1, b;"

  • fast/js/function-toString-parentheses-expected.txt:
  • fast/js/resources/function-toString-parentheses.js:
File:
1 edited

Legend:

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

    r31148 r31149  
    771771    for (ConstDeclNode* n = m_next.get(); n; n = n->m_next.get()) {
    772772        s << ", " << n->m_ident;
    773         if (m_init)
     773        if (n->m_init)
    774774            s << " = " << PrecAssignment << n->m_init;
    775775    }
Note: See TracChangeset for help on using the changeset viewer.