Index: fpdfsdk/src/jsapi/fxjs_v8.cpp |
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
index feed779f172b898e842a479f1733649bb90cf4ae..c4811bf096402462ad6a82f67d31e7f1e87594e8 100644 |
--- a/fpdfsdk/src/jsapi/fxjs_v8.cpp |
+++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp |
@@ -41,8 +41,8 @@ public: |
class CJS_ObjDefintion |
{ |
public: |
- CJS_ObjDefintion(v8::Isolate* isolate, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUCTOR pConstructor, LP_DESTRUCTOR pDestructor, unsigned bApplyNew): |
- objName(sObjName), objType(eObjType), m_pConstructor(pConstructor), m_pDestructor(pDestructor),m_bApplyNew(bApplyNew),m_bSetAsGlobalObject(FALSE) |
+ CJS_ObjDefintion(v8::Isolate* isolate, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUCTOR pConstructor, LP_DESTRUCTOR pDestructor): |
+ objName(sObjName), objType(eObjType), m_pConstructor(pConstructor), m_pDestructor(pDestructor),m_bSetAsGlobalObject(FALSE) |
{ |
v8::Isolate::Scope isolate_scope(isolate); |
v8::HandleScope handle_scope(isolate); |
@@ -68,14 +68,13 @@ public: |
FXJSOBJTYPE objType; |
LP_CONSTRUCTOR m_pConstructor; |
LP_DESTRUCTOR m_pDestructor; |
- unsigned m_bApplyNew; |
FX_BOOL m_bSetAsGlobalObject; |
v8::Global<v8::ObjectTemplate> m_objTemplate; |
v8::Global<v8::Object> m_StaticObj; |
}; |
-int JS_DefineObj(IJS_Runtime* pJSRuntime, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUCTOR pConstructor, LP_DESTRUCTOR pDestructor, unsigned bApplyNew) |
+int JS_DefineObj(IJS_Runtime* pJSRuntime, const wchar_t* sObjName, FXJSOBJTYPE eObjType, LP_CONSTRUCTOR pConstructor, LP_DESTRUCTOR pDestructor) |
{ |
v8::Isolate* isolate = (v8::Isolate*)pJSRuntime; |
v8::Isolate::Scope isolate_scope(isolate); |
@@ -86,7 +85,7 @@ int JS_DefineObj(IJS_Runtime* pJSRuntime, const wchar_t* sObjName, FXJSOBJTYPE e |
pArray = new CFX_PtrArray(); |
isolate->SetData(g_embedderDataSlot, pArray); |
} |
- CJS_ObjDefintion* pObjDef = new CJS_ObjDefintion(isolate, sObjName, eObjType, pConstructor, pDestructor, bApplyNew); |
+ CJS_ObjDefintion* pObjDef = new CJS_ObjDefintion(isolate, sObjName, eObjType, pConstructor, pDestructor); |
pArray->Add(pObjDef); |
return pArray->GetSize()-1; |
} |