Skip to content

Commit

Permalink
revert: Fix create_stack_trace from empty trace (denoland#1064)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartlomieju committed Feb 11, 2025
1 parent 1927f2c commit 32ce7f7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ deno_ast = { version = "=0.44.0", features = ["transpiling"] }
deno_core_icudata = "0.74.0"
deno_error = { version = "0.5.5", features = ["serde_json", "serde", "url", "tokio"] }
deno_unsync = "0.4.1"
v8 = { version = "130.0.7", default-features = false }
v8 = { version = "130.0.6", default-features = false }

anyhow = "1"
bencher = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion core/inspector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ impl JsRuntimeInspector {
) {
let context = scope.get_current_context();
let message = v8::Exception::create_message(scope, exception);
let stack_trace = message.get_stack_trace(scope);
let stack_trace = message.get_stack_trace(scope).unwrap();
let mut v8_inspector_ref = self.v8_inspector.borrow_mut();
let v8_inspector = v8_inspector_ref.as_mut().unwrap();
let stack_trace = v8_inspector.create_stack_trace(stack_trace.unwrap());
Expand Down

0 comments on commit 32ce7f7

Please sign in to comment.