Fix assertion in RegExp parser to correctly expect stack overflow.
authoryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Mar 2014 15:52:10 +0000 (15:52 +0000)
committeryangguo@chromium.org <yangguo@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 10 Mar 2014 15:52:10 +0000 (15:52 +0000)
commit1634e7de387352b2bdb73e56324a3a97c6807a18
treefe578aa10de767642b15f883457b8b43cc3abf6e
parent988d5fe50939cebe74dbbacb557202fa2c19302f
Fix assertion in RegExp parser to correctly expect stack overflow.

Advance() always checks for stack overflow. If stack indeed overflowed,
current() would hold the kEndMarker. ParseOctalLiteral does not expect
this in the assertion, which causes assertion failure.

R=mvstanton@chromium.org
BUG=350865
LOG=N

Review URL: https://codereview.chromium.org/192773002

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