diff options
Diffstat (limited to 'fpdfsdk/javascript')
-rw-r--r-- | fpdfsdk/javascript/JS_Value.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/JS_Value.cpp b/fpdfsdk/javascript/JS_Value.cpp index e2c990c51c..ab02f02cfb 100644 --- a/fpdfsdk/javascript/JS_Value.cpp +++ b/fpdfsdk/javascript/JS_Value.cpp @@ -151,7 +151,7 @@ void CJS_Value::MaybeCoerceToNumber() { if (bstr == "NaN") bAllowNaN = true; } - v8::TryCatch(m_pJSRuntime->GetIsolate()); + v8::TryCatch try_catch(m_pJSRuntime->GetIsolate()); v8::MaybeLocal<v8::Number> maybeNum = m_pValue->ToNumber(m_pJSRuntime->GetIsolate()->GetCurrentContext()); if (maybeNum.IsEmpty()) |