39 v8::Local<v8::Name> property,
40 const v8::PropertyCallbackInfo<v8::Integer>& info);
42 const v8::PropertyCallbackInfo<v8::Value>& info);
44 v8::Local<v8::Value> value,
45 const v8::PropertyCallbackInfo<v8::Value>& info);
47 const v8::PropertyCallbackInfo<v8::Boolean>& info);
48 static void enumprop_static(
const v8::PropertyCallbackInfo<v8::Array>& info);
51 const v8::FunctionCallbackInfo<v8::Value>& info);
53 CJS_Global(v8::Local<v8::Object> pObject, CJS_Runtime* pRuntime);
62 v8::Global<v8::Object> pData;
63 bool bPersistent =
false;
64 bool bDeleted =
false;
67 static uint32_t ObjDefnID;
70 void UpdateGlobalPersistentVariables();
72 void CommitGlobalPersisitentVariables();
73 void DestroyGlobalPersisitentVariables();
74 CJS_Result SetGlobalVariables(
const ByteString& propname,
78 const ByteString& sData,
79 v8::Local<v8::Object> pData,
80 bool bDefaultPersistent);
81 std::vector<std::unique_ptr<CFX_KeyValue>> ObjectToArray(
82 CJS_Runtime* pRuntime,
83 v8::Local<v8::Object> pObj);
84 void PutObjectProperty(v8::Local<v8::Object> obj,
CFX_KeyValue* pData);
85 CJS_Result setPersistent(CJS_Runtime* pRuntime,
86 pdfium::span<v8::Local<v8::Value>> params);
87 bool HasProperty(
const ByteString& propname);
88 bool DelProperty(
const ByteString& propname);
89 CJS_Result GetProperty(CJS_Runtime* pRuntime,
const ByteString& propname);
91 const ByteString& propname,
92 v8::Local<v8::Value> vp);
93 void EnumProperties(CJS_Runtime* pRuntime,
94 const v8::PropertyCallbackInfo<v8::Array>& info);
96 std::map<ByteString, std::unique_ptr<JSGlobalData>> m_MapGlobal;