Index: fpdfsdk/include/javascript/JS_Object.h |
diff --git a/fpdfsdk/include/javascript/JS_Object.h b/fpdfsdk/include/javascript/JS_Object.h |
index 02d2f57663b4e380a465cd3e02372a36aee840f6..a9ad01835c0d51e93739bd942eb81eab6202d0d9 100644 |
--- a/fpdfsdk/include/javascript/JS_Object.h |
+++ b/fpdfsdk/include/javascript/JS_Object.h |
@@ -46,6 +46,7 @@ public: |
virtual ~CJS_Object(void); |
void MakeWeak(); |
+ void Dispose(); |
virtual FX_BOOL IsType(FX_LPCSTR sClassName){return TRUE;}; |
virtual CFX_ByteString GetClassName(){return "";}; |
@@ -66,7 +67,7 @@ public: |
v8::Isolate* GetIsolate() {return m_pIsolate;} |
protected: |
CJS_EmbedObj * m_pEmbedObj; |
- v8::Persistent<v8::Object> m_pObject; |
+ v8::Global<v8::Object> m_pObject; |
v8::Isolate* m_pIsolate; |
}; |