diff options
Diffstat (limited to 'fxjs/cjs_runtime.cpp')
-rw-r--r-- | fxjs/cjs_runtime.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_runtime.cpp b/fxjs/cjs_runtime.cpp index 5364571919..50349158cb 100644 --- a/fxjs/cjs_runtime.cpp +++ b/fxjs/cjs_runtime.cpp @@ -127,10 +127,6 @@ void CJS_Runtime::DefineJSObjects() { CJS_Annot::DefineJSObjects(this); } -CJS_Runtime* CJS_Runtime::AsCJSRuntime() { - return this; -} - IJS_EventContext* CJS_Runtime::NewEventContext() { m_EventContextArray.push_back(pdfium::MakeUnique<CJS_EventContext>(this)); return m_EventContextArray.back().get(); @@ -187,6 +183,10 @@ WideString ChangeObjName(const WideString& str) { return sRet; } +CJS_Runtime* CJS_Runtime::AsCJSRuntime() { + return this; +} + bool CJS_Runtime::GetValueByNameFromGlobalObject(const ByteStringView& utf8Name, CFXJSE_Value* pValue) { v8::Isolate::Scope isolate_scope(GetIsolate()); |