From 9ad9a5fc81a36ab406ff49408dd0814d350bbc7e Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 7 Feb 2018 21:07:24 +0000 Subject: Split creation of ordinary object and bound objects in FXJS. One can be performed by the CJS_V8 layer, the other requires the full FXJS mechanism. Avoids using -1 as a special case. Change-Id: I4a14ccb6a7fea393f84b70a07ada03b1a83c7d36 Reviewed-on: https://pdfium-review.googlesource.com/25830 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/cjs_app.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fxjs/cjs_app.cpp') diff --git a/fxjs/cjs_app.cpp b/fxjs/cjs_app.cpp index 1df0146a58..5bd41e8bc0 100644 --- a/fxjs/cjs_app.cpp +++ b/fxjs/cjs_app.cpp @@ -317,7 +317,7 @@ CJS_Return CJS_App::setInterval( m_Timers.insert(std::unique_ptr(timerRef)); v8::Local pRetObj = - pRuntime->NewFxDynamicObj(CJS_TimerObj::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_TimerObj::GetObjDefnID()); if (pRetObj.IsEmpty()) return CJS_Return(false); @@ -344,7 +344,7 @@ CJS_Return CJS_App::setTimeOut( m_Timers.insert(std::unique_ptr(timerRef)); v8::Local pRetObj = - pRuntime->NewFxDynamicObj(CJS_TimerObj::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_TimerObj::GetObjDefnID()); if (pRetObj.IsEmpty()) return CJS_Return(false); -- cgit v1.2.3