diff options
author | Bert Belder <bertbelder@gmail.com> | 2020-05-06 18:50:02 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2020-05-06 22:35:24 +0200 |
commit | 7e00b2471d7288bd4bf0225bbd66126a4b33a125 (patch) | |
tree | d37760f24799a02cae43e520d1145a92e3c37825 /cli/inspector.rs | |
parent | 102a247ebbee823151c419ad0d578a76946a4664 (diff) |
Upgrade to rusty_v8 0.4.2 / V8 8.4.300 (#5113)
Diffstat (limited to 'cli/inspector.rs')
-rw-r--r-- | cli/inspector.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/cli/inspector.rs b/cli/inspector.rs index b6f653f4c..9ccf4cd49 100644 --- a/cli/inspector.rs +++ b/cli/inspector.rs @@ -423,7 +423,7 @@ impl DenoInspector { // Tell the inspector about the global context. let context = global_context.get(scope).unwrap(); let context_name = v8::inspector::StringView::from(&b"global context"[..]); - self_.context_created(context, Self::CONTEXT_GROUP_ID, &context_name); + self_.context_created(context, Self::CONTEXT_GROUP_ID, context_name); // Register this inspector with the server thread. // Note: poll_sessions() might block if we need to wait for a @@ -700,14 +700,12 @@ impl DenoInspectorSession { ) -> Box<Self> { new_box_with(move |self_ptr| { let v8_channel = v8::inspector::ChannelBase::new::<Self>(); - - let empty_view = v8::inspector::StringView::empty(); let v8_session = unsafe { &mut *inspector_ptr }.connect( Self::CONTEXT_GROUP_ID, // Todo(piscisaureus): V8Inspector::connect() should require that // the 'v8_channel' argument cannot move. unsafe { &mut *self_ptr }, - &empty_view, + v8::inspector::StringView::empty(), ); let (websocket_tx, websocket_rx) = websocket.split(); @@ -736,7 +734,7 @@ impl DenoInspectorSession { .map_ok(move |msg| { let msg = msg.as_bytes(); let msg = v8::inspector::StringView::from(msg); - unsafe { &mut *self_ptr }.dispatch_protocol_message(&msg); + unsafe { &mut *self_ptr }.dispatch_protocol_message(msg); }) .try_collect::<()>() .await; @@ -758,7 +756,7 @@ impl DenoInspectorSession { pub fn break_on_first_statement(&mut self) { let reason = v8::inspector::StringView::from(&b"debugCommand"[..]); let detail = v8::inspector::StringView::empty(); - self.schedule_pause_on_next_statement(&reason, &detail); + self.schedule_pause_on_next_statement(reason, detail); } } |