From 5c54dc5840e26410e364619b73b4721ce1815cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 1 Aug 2024 23:15:20 +0100 Subject: [PATCH] fix: regressions around Error.prepareStackTrace (#24839) Includes: - https://github.com/denoland/deno_core/pull/858 - https://github.com/denoland/deno_core/pull/856 Fixes https://github.com/denoland/deno/issues/24782 Fixes https://github.com/denoland/deno/issues/24825 --- Cargo.lock | 12 ++++++------ Cargo.toml | 2 +- cli/main.rs | 2 +- cli/standalone/mod.rs | 2 +- ext/node/ops/vm.rs | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7fdab1cbd0..0b03022fd0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1350,9 +1350,9 @@ dependencies = [ [[package]] name = "deno_core" -version = "0.300.0" +version = "0.301.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb79d0494b8c15f97761645f4afca5d52a414d4dc8f8aef8ca3b3ca82240ab55" +checksum = "d595cedb88ce9972e35b6b6ea3832792a570412c06c4ef2fe2b1e54505595e51" dependencies = [ "anyhow", "bincode", @@ -1836,9 +1836,9 @@ dependencies = [ [[package]] name = "deno_ops" -version = "0.176.0" +version = "0.177.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ecb75c43c9441f413f0595f694746f90d8ffd292337287da309dbd93773928c" +checksum = "f9e89d5b94f766a73ecfa03b8481c9b4932d137670bdd9b227e5fcf283175af7" dependencies = [ "proc-macro-rules", "proc-macro2", @@ -6047,9 +6047,9 @@ dependencies = [ [[package]] name = "serde_v8" -version = "0.209.0" +version = "0.210.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15d9095a8a725125fff1706f940af182e2a8ca01da8b0cd019aa47da93b28b94" +checksum = "ef949bc9a8f4eb6c6620ed5e52c60f8d7239ef31c9c5e1eb3ad88d882ad9bde2" dependencies = [ "num-bigint", "serde", diff --git a/Cargo.toml b/Cargo.toml index 10cd6deeae..aa1e35dd47 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -45,7 +45,7 @@ repository = "https://github.com/denoland/deno" [workspace.dependencies] deno_ast = { version = "=0.41.2", features = ["transpiling"] } -deno_core = { version = "0.300.0" } +deno_core = { version = "0.301.0" } deno_bench_util = { version = "0.158.0", path = "./bench_util" } deno_lockfile = "0.20.0" diff --git a/cli/main.rs b/cli/main.rs index 760151d097..d17f0f260f 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -399,7 +399,7 @@ fn resolve_flags_and_init( }; init_v8_flags(&default_v8_flags, &flags.v8_flags, get_v8_flags_from_env()); - deno_core::JsRuntime::init_platform(None); + deno_core::JsRuntime::init_platform(None, !*DENO_FUTURE); util::logger::init(flags.log_level); Ok(flags) diff --git a/cli/standalone/mod.rs b/cli/standalone/mod.rs index afacacc1f2..935e034dfc 100644 --- a/cli/standalone/mod.rs +++ b/cli/standalone/mod.rs @@ -728,7 +728,7 @@ pub async fn run( // Initialize v8 once from the main thread. v8_set_flags(construct_v8_flags(&[], &metadata.v8_flags, vec![])); - deno_core::JsRuntime::init_platform(None); + deno_core::JsRuntime::init_platform(None, true); let mut worker = worker_factory .create_main_worker(WorkerExecutionMode::Run, main_module, permissions) diff --git a/ext/node/ops/vm.rs b/ext/node/ops/vm.rs index a44d84975f..860498f5a1 100644 --- a/ext/node/ops/vm.rs +++ b/ext/node/ops/vm.rs @@ -140,7 +140,7 @@ mod tests { #[test] fn test_run_in_this_context() { let platform = v8::new_default_platform(0, false).make_shared(); - deno_core::JsRuntime::init_platform(Some(platform)); + deno_core::JsRuntime::init_platform(Some(platform), false); let isolate = &mut v8::Isolate::new(Default::default());