39 v8::Local<v8::Name> property,
40 const v8::PropertyCallbackInfo<v8::Integer>& info);
42 v8::Local<v8::Name> property,
43 const v8::PropertyCallbackInfo<v8::Value>& info);
45 v8::Local<v8::Name> property,
46 v8::Local<v8::Value> value,
47 const v8::PropertyCallbackInfo<
void>& info);
49 v8::Local<v8::Name> property,
50 const v8::PropertyCallbackInfo<v8::Boolean>& info);
51 static void enumprop_static(
const v8::PropertyCallbackInfo<v8::Array>& info);
54 const v8::FunctionCallbackInfo<v8::Value>& info);
56 CJS_Global(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
65 v8::Global<v8::Object> pData;
66 bool bPersistent =
false;
67 bool bDeleted =
false;
70 static uint32_t ObjDefnID;
73 void UpdateGlobalPersistentVariables();
75 void CommitGlobalPersisitentVariables();
76 void DestroyGlobalPersisitentVariables();
82 v8::Local<v8::Object> pData,
83 bool bDefaultPersistent);
84 std::vector<std::unique_ptr<CFX_KeyValue>> ObjectToArray(
85 CJS_Runtime* pRuntime,
86 v8::Local<v8::Object> pObj);
87 void PutObjectProperty(v8::Local<v8::Object> obj,
CFX_KeyValue* pData);
88 CJS_Result setPersistent(CJS_Runtime* pRuntime,
89 pdfium::span<v8::Local<v8::Value>> params);
95 v8::Local<v8::Value> vp);
96 void EnumProperties(CJS_Runtime* pRuntime,
97 const v8::PropertyCallbackInfo<v8::Array>& info);
99 std::map<ByteString, std::unique_ptr<JSGlobalData>> m_MapGlobal;