Ignore:
Timestamp:
Jan 13, 2007, 11:53:38 PM (18 years ago)
Author:
bdash
Message:

2007-01-14 Mark Rowe <[email protected]>

Reviewed by Mitz.

Minor fixes to JavaScript pretty-printing.

  • JavaScriptCore.exp:
  • kjs/Parser.cpp: (KJS::Parser::prettyPrint): Return line number and error message if parsing fails.
  • kjs/Parser.h:
  • kjs/nodes2string.cpp: (ElementNode::streamTo): Include comma delimiters in array literals. (PropertyNameNode::streamTo): Quote property names in object literals to handle the case when the property name is not a valid identifier.
  • kjs/testkjs.cpp: (doIt): Print any errors encountered while pretty-printing.

2007-01-14 Mark Rowe <[email protected]>

Reviewed by Mitz.

Layout tests for fixes to JavaScript pretty-printing.

  • fast/js/pretty-print-expected.txt:
  • fast/js/resources/pretty-print.js: Test handling of object literal with non-identifier property name, and of array literals.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/JavaScriptCore.exp

    r18782 r18837  
    171171__ZN3KJS6JSLock6unlockEv
    172172__ZN3KJS6Lookup9findEntryEPKNS_9HashTableERKNS_10IdentifierE
    173 __ZN3KJS6Parser11prettyPrintERKNS_7UStringE
     173__ZN3KJS6Parser11prettyPrintERKNS_7UStringEPiPS1_
    174174__ZN3KJS7CStringD1Ev
    175175__ZN3KJS7UString3Rep4nullE
Note: See TracChangeset for help on using the changeset viewer.