diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-01-20 11:48:29 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-01-20 11:48:29 -0800 |
commit | 4246b0015732d7611ad6838b76b85161fab3795e (patch) | |
tree | 97591bdfa54a443abd025943788af65a9a82291f /fpdfsdk/src/javascript/JS_Value.h | |
parent | c4fd5c183142aef5ae93b918b65a0bf01d2a0a1e (diff) | |
download | pdfium-4246b0015732d7611ad6838b76b85161fab3795e.tar.xz |
Merge to XFA: Bugs in CJS_PublicMethods::ParseNumber().
Original Review URL: https://codereview.chromium.org/1586203006 .
(cherry picked from commit f13d510cf267c27f4c123494de67670ec201cedc)
BUG=pdfium:361
R=ochang@chromium.org
TBR=ochang@chromium.org
Review URL: https://codereview.chromium.org/1603173004 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Value.h')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Value.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fpdfsdk/src/javascript/JS_Value.h b/fpdfsdk/src/javascript/JS_Value.h index 8517b76dac..20a6e38b46 100644 --- a/fpdfsdk/src/javascript/JS_Value.h +++ b/fpdfsdk/src/javascript/JS_Value.h @@ -62,6 +62,11 @@ class CJS_Value { v8::Local<v8::Array> ToV8Array() const; v8::Local<v8::Value> ToV8Value() const; + // Replace the current |m_pValue| with a v8::Number if possible + // to make one from the current |m_pValue|, updating |m_eType| + // as appropriate to indicate the result. + void MaybeCoerceToNumber(); + void operator=(int iValue); void operator=(bool bValue); void operator=(double); |