Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(99)

Issue 7677012: Make scanner handle invalid unicode escapes in identifiers correctly. (Closed)

Created:
9 years, 4 months ago by Lasse Reichstein
Modified:
9 years, 4 months ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Make scanner handle invalid unicode escapes in identifiers correctly. I.e., don't just convert \u to u in identifiers (like in strings and regexps). Also make the scanning of RegExp flags not interpret the escapes. (Fix and reapply of r8942) BUG=v8:1620 TEST=mjsunit/regress/regress-1620 Committed: http://code.google.com/p/v8/source/detail?r=8969

Patch Set 1 #

Total comments: 3

Patch Set 2 : Addressed review comments. Fixed bug, updated sputnik expectations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -27 lines) Patch
M src/scanner-base.h View 2 chunks +5 lines, -1 line 0 comments Download
M src/scanner-base.cc View 1 8 chunks +67 lines, -26 lines 0 comments Download
A test/mjsunit/regress/regress-1620.js View 1 1 chunk +54 lines, -0 lines 0 comments Download
M test/sputnik/sputnik.status View 1 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Lasse Reichstein
9 years, 4 months ago (2011-08-18 10:57:59 UTC) #1
Rico
LGTM http://codereview.chromium.org/7677012/diff/1/src/scanner-base.cc File src/scanner-base.cc (right): http://codereview.chromium.org/7677012/diff/1/src/scanner-base.cc#newcode1068 src/scanner-base.cc:1068: return true; Indention seems wrong http://codereview.chromium.org/7677012/diff/1/test/mjsunit/regress/regress-1620.js File test/mjsunit/regress/regress-1620.js ...
9 years, 4 months ago (2011-08-18 11:43:13 UTC) #2
Lasse Reichstein
9 years, 4 months ago (2011-08-24 13:36:28 UTC) #3
http://codereview.chromium.org/7677012/diff/1/src/scanner-base.cc
File src/scanner-base.cc (right):

http://codereview.chromium.org/7677012/diff/1/src/scanner-base.cc#newcode1068
src/scanner-base.cc:1068: return true;
Argh, more than wrong. The return has moved itself above the end '}' of the
loop. Will add more tests since we didn't catch such a blatant bug.

Powered by Google App Engine
This is Rietveld 408576698