diff --git a/src/binding.cpp b/src/binding.cpp index 6a8fdf4..f34e9e9 100644 --- a/src/binding.cpp +++ b/src/binding.cpp @@ -1599,6 +1599,16 @@ void v8_inspector__Session__dispatchProtocolMessage( session->dispatchProtocolMessage(str_view); } +struct RemoteObject{}; + +RemoteObject v8_inspector__Session__wrapObject( + v8_inspector::V8InspectorSession *session, v8::Isolate *isolate, + const v8::Context& ctx, const v8::Value& val, + const char *grpname, bool generatepreview) { + auto sv_grpname = toStringView(grpname); + return session->wrapObject(ptr_to_local(&ctx), ptr_to_local(&val), sv_grpname, generatepreview); +} + // InspectorChannel v8_inspector__Channel__IMPL * v8_inspector__Channel__IMPL__CREATE(v8::Isolate *isolate) { diff --git a/src/binding.h b/src/binding.h index 8d67751..ec9c955 100644 --- a/src/binding.h +++ b/src/binding.h @@ -951,10 +951,18 @@ void v8_inspector__Client__IMPL__consoleAPIMessage( const Context* v8_inspector__Client__IMPL__ensureDefaultContextInGroup( InspectorClientImpl* self, void* data, int contextGroupId); + +// RemoteObject +typedef struct RemoteObject RemoteObject; + // InspectorSession typedef struct InspectorSession InspectorSession; void v8_inspector__Session__dispatchProtocolMessage(InspectorSession *session, Isolate *isolate, const char* msg, usize msg_len); +RemoteObject v8_inspector__Session__wrapObject( + v8_inspector::V8InspectorSession *session, v8::Isolate *isolate, + const v8::Context& ctx, const v8::Value& val, + const char *grpname, bool generatepreview); // Inspector typedef struct Inspector Inspector;