DescriptionFix 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 #
Messages
Total messages: 8 (3 generated)
|