mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 17:34:47 -05:00
Upgrade to rusty_v8 0.4.2 / V8 8.4.300 (#5113)
This commit is contained in:
parent
102a247ebb
commit
7e00b2471d
3 changed files with 7 additions and 9 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -2077,9 +2077,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "rusty_v8"
|
name = "rusty_v8"
|
||||||
version = "0.4.0"
|
version = "0.4.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "d7ccfa96e1b3ce6f807a93b58d38fc5e984e617506e52cb336888ab890cd884a"
|
checksum = "acb0ad56a57c42009a8d16df5fa94ae882ad0ffe0e88fe1a23b261b3affbccf2"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"cargo_gn",
|
"cargo_gn",
|
||||||
|
|
|
@ -423,7 +423,7 @@ impl DenoInspector {
|
||||||
// Tell the inspector about the global context.
|
// Tell the inspector about the global context.
|
||||||
let context = global_context.get(scope).unwrap();
|
let context = global_context.get(scope).unwrap();
|
||||||
let context_name = v8::inspector::StringView::from(&b"global context"[..]);
|
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.
|
// Register this inspector with the server thread.
|
||||||
// Note: poll_sessions() might block if we need to wait for a
|
// Note: poll_sessions() might block if we need to wait for a
|
||||||
|
@ -700,14 +700,12 @@ impl DenoInspectorSession {
|
||||||
) -> Box<Self> {
|
) -> Box<Self> {
|
||||||
new_box_with(move |self_ptr| {
|
new_box_with(move |self_ptr| {
|
||||||
let v8_channel = v8::inspector::ChannelBase::new::<Self>();
|
let v8_channel = v8::inspector::ChannelBase::new::<Self>();
|
||||||
|
|
||||||
let empty_view = v8::inspector::StringView::empty();
|
|
||||||
let v8_session = unsafe { &mut *inspector_ptr }.connect(
|
let v8_session = unsafe { &mut *inspector_ptr }.connect(
|
||||||
Self::CONTEXT_GROUP_ID,
|
Self::CONTEXT_GROUP_ID,
|
||||||
// Todo(piscisaureus): V8Inspector::connect() should require that
|
// Todo(piscisaureus): V8Inspector::connect() should require that
|
||||||
// the 'v8_channel' argument cannot move.
|
// the 'v8_channel' argument cannot move.
|
||||||
unsafe { &mut *self_ptr },
|
unsafe { &mut *self_ptr },
|
||||||
&empty_view,
|
v8::inspector::StringView::empty(),
|
||||||
);
|
);
|
||||||
|
|
||||||
let (websocket_tx, websocket_rx) = websocket.split();
|
let (websocket_tx, websocket_rx) = websocket.split();
|
||||||
|
@ -736,7 +734,7 @@ impl DenoInspectorSession {
|
||||||
.map_ok(move |msg| {
|
.map_ok(move |msg| {
|
||||||
let msg = msg.as_bytes();
|
let msg = msg.as_bytes();
|
||||||
let msg = v8::inspector::StringView::from(msg);
|
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::<()>()
|
.try_collect::<()>()
|
||||||
.await;
|
.await;
|
||||||
|
@ -758,7 +756,7 @@ impl DenoInspectorSession {
|
||||||
pub fn break_on_first_statement(&mut self) {
|
pub fn break_on_first_statement(&mut self) {
|
||||||
let reason = v8::inspector::StringView::from(&b"debugCommand"[..]);
|
let reason = v8::inspector::StringView::from(&b"debugCommand"[..]);
|
||||||
let detail = v8::inspector::StringView::empty();
|
let detail = v8::inspector::StringView::empty();
|
||||||
self.schedule_pause_on_next_statement(&reason, &detail);
|
self.schedule_pause_on_next_statement(reason, detail);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ futures = { version = "0.3.4", features = ["thread-pool", "compat"] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
libc = "0.2.69"
|
libc = "0.2.69"
|
||||||
log = "0.4.8"
|
log = "0.4.8"
|
||||||
rusty_v8 = "0.4.0"
|
rusty_v8 = "0.4.2"
|
||||||
serde_json = "1.0.52"
|
serde_json = "1.0.52"
|
||||||
url = "2.1.1"
|
url = "2.1.1"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue