diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-01-25 13:22:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 12:22:27 +0000 |
commit | e2d75491d5fc6fbac67da89c7350c4c9ca99d8e9 (patch) | |
tree | 5efc18dbe80576cd184a2893baab30011d8d63d2 /core/inspector.rs | |
parent | f3711f28f4b5ddfd9a11d9952b0a33b75fc5bc9c (diff) |
chore: upgrade rusty_v8 to 0.62.0 (#17200)
Diffstat (limited to 'core/inspector.rs')
-rw-r--r-- | core/inspector.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/core/inspector.rs b/core/inspector.rs index 2b03d663d..c83784fe3 100644 --- a/core/inspector.rs +++ b/core/inspector.rs @@ -111,6 +111,16 @@ impl v8::inspector::V8InspectorClientImpl for JsRuntimeInspector { &self.v8_inspector_client } + unsafe fn base_ptr( + this: *const Self, + ) -> *const v8::inspector::V8InspectorClientBase + where + Self: Sized, + { + // SAFETY: this pointer is valid for the whole lifetime of inspector + unsafe { std::ptr::addr_of!((*this).v8_inspector_client) } + } + fn base_mut(&mut self) -> &mut v8::inspector::V8InspectorClientBase { &mut self.v8_inspector_client } @@ -647,6 +657,14 @@ impl v8::inspector::ChannelImpl for InspectorSession { &self.v8_channel } + unsafe fn base_ptr(this: *const Self) -> *const v8::inspector::ChannelBase + where + Self: Sized, + { + // SAFETY: this pointer is valid for the whole lifetime of inspector + unsafe { std::ptr::addr_of!((*this).v8_channel) } + } + fn base_mut(&mut self) -> &mut v8::inspector::ChannelBase { &mut self.v8_channel } |