Fix handling of 'c: if (0) break c; else ()' where a parser optimization
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 8 Feb 2012 08:40:11 +0000 (08:40 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 8 Feb 2012 08:40:11 +0000 (08:40 +0000)
commitf0a87d7c342e28e39958fcb62074b13695ee826c
tree5cbeca214564b50ae417a945c44407d819a909c9
parent557fc46b6231698fbd13436c9b6171fe7e7bee56
Fix handling of 'c: if (0) break c; else ()' where a parser optimization
leaves a trailing ";" after removing the break.

Review URL: https://chromiumcodereview.appspot.com/9159043

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10628 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
test/mjsunit/regress/regress-1924.js [new file with mode: 0644]