Fix crasher when checking for "of", but next token has no literal buffer
authorwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Jun 2013 11:30:03 +0000 (11:30 +0000)
committerwingo@igalia.com <wingo@igalia.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 11 Jun 2013 11:30:03 +0000 (11:30 +0000)
commitf68d6a10f87a084d0bc3ae215e0833bfbe0cca03
treea634cbb5e16983a3a5c5d27eb27f7ae92f2083c2
parentdbeafbaaffe2bc2033a072e6bc0e1ce467976617
Fix crasher when checking for "of", but next token has no literal buffer

Also fix a typo in an assertion in scanner.h.

R=mstarzinger@chromium.org
BUG=248025
TEST=mjsunit/regress/regress-crbug-248025.js

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15059 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/preparser.cc
src/scanner.h
test/mjsunit/regress/regress-crbug-248025.js [new file with mode: 0644]