diff options
Diffstat (limited to 'fpdfsdk/javascript/event.cpp')
-rw-r--r-- | fpdfsdk/javascript/event.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/event.cpp b/fpdfsdk/javascript/event.cpp index 337ce40cd8..da81aac45a 100644 --- a/fpdfsdk/javascript/event.cpp +++ b/fpdfsdk/javascript/event.cpp @@ -61,7 +61,7 @@ bool event::set_change(CJS_Runtime* pRuntime, CJS_EventHandler* pEvent = pRuntime->GetCurrentEventContext()->GetEventHandler(); - if (vp.GetType() == CJS_Value::VT_string) { + if (vp.ToV8Value()->IsString()) { WideString& wChange = pEvent->Change(); wChange = pRuntime->ToWideString(vp.ToV8Value()); } |