2007-05-08 Kimmo Kinnunen <kimmok@iki.fi>
authoreseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 May 2007 03:11:33 +0000 (03:11 +0000)
committereseidel <eseidel@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 May 2007 03:11:33 +0000 (03:11 +0000)
commit0e0a02259754028511bd5ff472bf41f4f4636350
tree54811b1ecfa785c23115b47c185bce0a399a9921
parentf0fb233620550065585200579afba8db8979f9fb
2007-05-08  Kimmo Kinnunen  <kimmok@iki.fi>

        Reviewed by darin.  Landed by eseidel.

        - http://bugs.webkit.org/show_bug.cgi?id=10880 (Do..while loop gains
        a semicolon each time it is toStringed)
        Grammar in Ecma-66262, 12.6: "do Statement while ( Expression );"
        EmptyStatement was created after every do..while(expr) which
        had semicolon at the end.

        * kjs/grammar.y: Require semicolon at the end of do..while

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
JavaScriptCore/ChangeLog
JavaScriptCore/kjs/grammar.y
LayoutTests/ChangeLog
LayoutTests/fast/js/do-while-semicolon-expected.txt [new file with mode: 0644]
LayoutTests/fast/js/do-while-semicolon.html [new file with mode: 0644]
LayoutTests/fast/js/resources/do-while-semicolon.js [new file with mode: 0644]