diff options
Diffstat (limited to 'fpdfsdk/javascript/cjs_runtime.h')
-rw-r--r-- | fpdfsdk/javascript/cjs_runtime.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/javascript/cjs_runtime.h b/fpdfsdk/javascript/cjs_runtime.h index 0d6951f8c0..90ec23ee7a 100644 --- a/fpdfsdk/javascript/cjs_runtime.h +++ b/fpdfsdk/javascript/cjs_runtime.h @@ -48,6 +48,10 @@ class CJS_Runtime : public IJS_Runtime, void EndBlock() { m_bBlocking = false; } bool IsBlocking() const { return m_bBlocking; } + // Attempt to convert the |value| into a number. If successful the number + // value will be returned, otherwise |value| is returned. + v8::Local<v8::Value> MaybeCoerceToNumber(const v8::Local<v8::Value>& value); + #ifdef PDF_ENABLE_XFA bool GetValueByName(const ByteStringView& utf8Name, CFXJSE_Value* pValue) override; |