Go to file
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 Fix presubmit errors introduced by r10002. 2011-11-16 01:44:17 +00:00
build Upstream Android V8 change. 2011-11-23 17:32:34 +00:00
include Reapply r10158: Distinguish weak references in heap snapshots, group GC roots. 2011-12-06 17:41:47 +00:00
preparser Ignore flags with arguments in preparser-process. 2011-10-14 07:34:45 +00:00
samples Fix presubmit errors caused by updated depot tools 2011-09-08 19:57:14 +00:00
src Sync parser and preparser on do-while and return statements. 2011-12-07 16:03:29 +00:00
test Sync parser and preparser on do-while and return statements. 2011-12-07 16:03:29 +00:00
tools Upstream Android V8 change. 2011-11-23 17:32:34 +00:00
.gitignore Add *.so to .gitignore. 2011-09-07 21:09:13 +00:00
AUTHORS Debugger: fix stepping next with trycatch recursion 2011-09-13 14:38:39 +00:00
ChangeLog Prepare push to trunk. Now working on version 3.8.0 2011-12-01 08:14:30 +00:00
LICENSE Fix the license info to correctly state Copyright "the V8 project 2011-01-19 09:20:18 +00:00
LICENSE.strongtalk Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.v8 Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
LICENSE.valgrind Add LICENSE.v8, LICENSE.strongtalk and LICENSE.valgrind to the v8 2011-02-03 07:10:06 +00:00
Makefile Add MIPS support to top-level Makefile 2011-11-09 16:18:36 +00:00
SConstruct Adding NetBSD support for scons build. 2011-11-16 14:35:47 +00:00