diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-14 23:40:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-14 23:40:10 +0000 |
commit | 55ccb526913debb3269a33792bbd61b05656ec46 (patch) | |
tree | a98152baf9d4a5dcf1c76ecaf53cbae35720d2b8 /fxjs/cjs_app.cpp | |
parent | 48d62c3a5f57eb3397a335bea4a5a30de2fcb955 (diff) | |
download | pdfium-55ccb526913debb3269a33792bbd61b05656ec46.tar.xz |
Remove optional argument from NewFXJSBoundObject().
Additionally, we have a pre-existing enum type that is more
meaningful than just a boolean.
Change-Id: Ie6ad13a3c9b22e34dedf7a5a9b5b9cc2a49b1f03
Reviewed-on: https://pdfium-review.googlesource.com/40190
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_app.cpp')
-rw-r--r-- | fxjs/cjs_app.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_app.cpp b/fxjs/cjs_app.cpp index 485184bfc4..7029ddaf26 100644 --- a/fxjs/cjs_app.cpp +++ b/fxjs/cjs_app.cpp @@ -327,8 +327,8 @@ CJS_Return CJS_App::setInterval( GlobalTimer* pTimerRef = timerRef.get(); m_Timers.insert(std::move(timerRef)); - v8::Local<v8::Object> pRetObj = - pRuntime->NewFXJSBoundObject(CJS_TimerObj::GetObjDefnID()); + v8::Local<v8::Object> pRetObj = pRuntime->NewFXJSBoundObject( + CJS_TimerObj::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pRetObj.IsEmpty()) return CJS_Return(JSMessage::kBadObjectError); @@ -356,8 +356,8 @@ CJS_Return CJS_App::setTimeOut( GlobalTimer* pTimerRef = timerRef.get(); m_Timers.insert(std::move(timerRef)); - v8::Local<v8::Object> pRetObj = - pRuntime->NewFXJSBoundObject(CJS_TimerObj::GetObjDefnID()); + v8::Local<v8::Object> pRetObj = pRuntime->NewFXJSBoundObject( + CJS_TimerObj::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pRetObj.IsEmpty()) return CJS_Return(JSMessage::kBadObjectError); |