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

Issue 223016: Fix a bug where if a PAC script ended with a comment and no newline, it would... (Closed)

Created:
11 years, 3 months ago by eroman
Modified:
9 years, 6 months ago
Reviewers:
wtc
CC:
chromium-reviews_googlegroups.com, darin (slow to review), tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix a bug where if a PAC script ended with a comment and no newline, it would fail to parse. The library is now compiled and executed in a separate pass, rather than trying to append the source segments. BUG=http://crbug.com/22864 TEST=ProxyResolverV8Test.TrailingComment Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27035

Patch Set 1 #

Patch Set 2 : update a comment #

Total comments: 2

Patch Set 3 : remove unused TryCatch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -16 lines) Patch
A net/data/proxy_resolver_v8_unittest/ends_with_comment.js View 1 1 chunk +8 lines, -0 lines 0 comments Download
M net/proxy/proxy_resolver_v8.cc View 1 2 3 chunks +36 lines, -16 lines 0 comments Download
M net/proxy/proxy_resolver_v8_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
eroman
11 years, 3 months ago (2009-09-23 23:30:25 UTC) #1
wtc
LGTM! I'm glad you tracked this down. http://codereview.chromium.org/223016/diff/5/6 File net/proxy/proxy_resolver_v8.cc (left): http://codereview.chromium.org/223016/diff/5/6#oldcode133 Line 133: v8::TryCatch ...
11 years, 3 months ago (2009-09-24 00:05:37 UTC) #2
eroman
11 years, 3 months ago (2009-09-24 00:10:07 UTC) #3
Thanks for the speedy review!

http://codereview.chromium.org/223016/diff/5/6
File net/proxy/proxy_resolver_v8.cc (left):

http://codereview.chromium.org/223016/diff/5/6#oldcode133
Line 133: v8::TryCatch try_catch;
On 2009/09/24 00:05:37, wtc wrote:
> We can delete try_catch, right?

Done.

Powered by Google App Engine
This is Rietveld 408576698