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

Issue 1929513002: Fix incorrect v8 TryCatch. (Closed)

Created:
4 years, 7 months ago by etienneb
Modified:
4 years, 7 months ago
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Fix incorrect v8 TryCatch. The Try-Catch object must live the whole lexical scope. Without the giving a name to the object, this is equivalent to create a temporary that is destroy at the end of the statement. /src/pdfium/pdfium/out/Debug/../../fpdfsdk/javascript/JS_Value.cpp:154:3: warning: object destroyed immediately after creation; did you mean to name the object? [misc-unused-raii] This issue was found by clang-tidy R=dsinclair BUG=589955 Committed: https://pdfium.googlesource.com/pdfium/+/b2f6f9158f54cee1825830c7ed57fe9d89cff26e

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M fpdfsdk/javascript/JS_Value.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
dsinclair
This seems fine to me, from the code I'm guessing we don't care if the ...
4 years, 7 months ago (2016-04-27 15:46:48 UTC) #2
jochen (gone - plz use gerrit)
lgtm
4 years, 7 months ago (2016-04-27 15:51:11 UTC) #3
dsinclair
lgtm
4 years, 7 months ago (2016-04-27 15:52:14 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1929513002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1929513002/1
4 years, 7 months ago (2016-04-27 15:52:21 UTC) #6
commit-bot: I haz the power
4 years, 7 months ago (2016-04-27 16:10:15 UTC) #8
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://pdfium.googlesource.com/pdfium/+/b2f6f9158f54cee1825830c7ed57fe9d89cf...

Powered by Google App Engine
This is Rietveld 408576698