MCPcopy Create free account
hub / github.com/PenguLoader/PenguLoader / V8Object

Class V8Object

core/src/renderer/v8_wrapper.h:99–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97};
98
99struct V8Object : V8ValueBase
100{
101 inline bool has(const cef_string_t *key)
102 {
103 return _.has_value_bykey(&_, key);
104 }
105
106 inline V8Value *get(const cef_string_t *key)
107 {
108 return (V8Value *)_.get_value_bykey(&_, key);
109 }
110
111 inline void set(const cef_string_t *key, V8ValueBase *value, cef_v8_propertyattribute_t attr)
112 {
113 _.set_value_bykey(&_, key, (cef_v8value_t *)value, attr);
114 }
115
116 static inline V8Object *create()
117 {
118 return (V8Object *)cef_v8value_create_object(nullptr, nullptr);
119 }
120};
121
122typedef V8Value *(*V8FunctionHandler)(V8Value *const argv[], int argc);
123

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected