diff options
Diffstat (limited to 'fpdfsdk/javascript/Field.cpp')
-rw-r--r-- | fpdfsdk/javascript/Field.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/javascript/Field.cpp b/fpdfsdk/javascript/Field.cpp index 35b808c733..93017c4da9 100644 --- a/fpdfsdk/javascript/Field.cpp +++ b/fpdfsdk/javascript/Field.cpp @@ -2331,7 +2331,7 @@ bool Field::get_value(CJS_Runtime* pRuntime, vp->Set(pRuntime->NewString(pFormField->GetValue().c_str())); break; } - vp->MaybeCoerceToNumber(pRuntime); + vp->Set(pRuntime->MaybeCoerceToNumber(vp->ToV8Value())); return true; } |