v8/test
keuchel@chromium.org 410219c8f3 Sync parser and preparser on do-while and return statements.
This CL fixes the preparser to have the same liberal automatic semicolon
insertion behaviour as the parser. In the case of a return statement in
global code we throw a syntax error at runtime rather than an early error
due to compatibility with KJS. However that hack allowed the following
syntactically incorrect program in global code in the parser but not in
the preparser:
  if (false) return else {}
while the slightly saner version with the obligatory semicolon
  if (false) return; else {}
was disallowed in the parser, but the preparser allowed it. This CL also
fixes that issue.

BUG=v8:1856
TEST=cctest/test-parsing.cc

Review URL: http://codereview.chromium.org/8844002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10201 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2011-12-07 16:03:29 +00:00
..
benchmarks Switch from sample shell to d8 for unit test 2011-07-26 05:56:45 +00:00
cctest Sync parser and preparser on do-while and return statements. 2011-12-07 16:03:29 +00:00
es5conform MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
message MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
mjsunit Fix a bug with register use in optimized Math.round. 2011-12-07 10:13:46 +00:00
mozilla MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
preparser MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
sputnik MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00
test262 MIPS: updated test .status files based mostly on the ARM version. 2011-12-05 11:44:17 +00:00