Remove "using namespace v8" in header. This allows us to turn all warnings into error...
[pdfium.git] / fpdfsdk / src / javascript / JS_Context.cpp
index 21acf59..c0d4e08 100644 (file)
@@ -116,7 +116,7 @@ FX_BOOL CJS_Context::DoJob(int nMode, const CFX_WideString& script, CFX_WideStri
 FX_BOOL CJS_Context::RunScript(const CFX_WideString& script, CFX_WideString& info)\r
 {\r
        v8::Isolate::Scope isolate_scope(m_pRuntime->GetIsolate());\r
-       HandleScope handle_scope(m_pRuntime->GetIsolate());\r
+       v8::HandleScope handle_scope(m_pRuntime->GetIsolate());\r
        v8::Local<v8::Context> context = m_pRuntime->NewJSContext();\r
        v8::Context::Scope context_scope(context);\r
 \r
@@ -126,7 +126,7 @@ FX_BOOL CJS_Context::RunScript(const CFX_WideString& script, CFX_WideString& inf
 FX_BOOL CJS_Context::Compile(const CFX_WideString& script, CFX_WideString& info)\r
 {\r
        v8::Isolate::Scope isolate_scope(m_pRuntime->GetIsolate());\r
-       HandleScope handle_scope(m_pRuntime->GetIsolate());\r
+       v8::HandleScope handle_scope(m_pRuntime->GetIsolate());\r
        v8::Local<v8::Context> context = m_pRuntime->NewJSContext();\r
        v8::Context::Scope context_scope(context);\r
 \r