summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2023-01-25 13:22:27 +0100
committerGitHub <noreply@github.com>2023-01-25 12:22:27 +0000
commite2d75491d5fc6fbac67da89c7350c4c9ca99d8e9 (patch)
tree5efc18dbe80576cd184a2893baab30011d8d63d2
parentf3711f28f4b5ddfd9a11d9952b0a33b75fc5bc9c (diff)
chore: upgrade rusty_v8 to 0.62.0 (#17200)
-rw-r--r--Cargo.lock4
-rw-r--r--Cargo.toml2
-rw-r--r--cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out1
-rw-r--r--core/icudtl.datbin10454784 -> 10541264 bytes
-rw-r--r--core/inspector.rs18
-rw-r--r--core/runtime.rs4
6 files changed, 24 insertions, 5 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 2832b4abc..825ebf09a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5348,9 +5348,9 @@ dependencies = [
[[package]]
name = "v8"
-version = "0.60.1"
+version = "0.62.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "07fd5b3ed559897ff02c0f62bc0a5f300bfe79bb4c77a50031b8df771701c628"
+checksum = "de76082a8779ca1b570458e91caaa2fc5d30cefffba524129613874ce69cdfc3"
dependencies = [
"bitflags",
"fslock",
diff --git a/Cargo.toml b/Cargo.toml
index 94f084a5e..f74d94273 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,7 +41,7 @@ license = "MIT"
repository = "https://github.com/denoland/deno"
[workspace.dependencies]
-v8 = { version = "0.60.1", default-features = false }
+v8 = { version = "0.62.0", default-features = false }
deno_ast = { version = "0.23.2", features = ["transpiling"] }
deno_core = { version = "0.167.0", path = "./core" }
diff --git a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
index 6485c620e..66eb8201c 100644
--- a/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
+++ b/cli/tests/testdata/run/worker_close_in_wasm_reactions.js.out
@@ -1 +1,2 @@
Error: CompileError: WebAssembly.compile(): expected length: @+10
+ at file:///[WILDCARD]/close_in_wasm_reactions.js:18:13
diff --git a/core/icudtl.dat b/core/icudtl.dat
index dfa97affb..d1f10917a 100644
--- a/core/icudtl.dat
+++ b/core/icudtl.dat
Binary files differ
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
}
diff --git a/core/runtime.rs b/core/runtime.rs
index 5f89fbdee..026ee02a5 100644
--- a/core/runtime.rs
+++ b/core/runtime.rs
@@ -199,9 +199,9 @@ fn v8_init(
) {
// Include 10MB ICU data file.
#[repr(C, align(16))]
- struct IcuData([u8; 10454784]);
+ struct IcuData([u8; 10541264]);
static ICU_DATA: IcuData = IcuData(*include_bytes!("icudtl.dat"));
- v8::icu::set_common_data_71(&ICU_DATA.0).unwrap();
+ v8::icu::set_common_data_72(&ICU_DATA.0).unwrap();
let flags = concat!(
" --wasm-test-streaming",