Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: panic, unwrap to unwrap_or #739

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion core/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ impl JsError {

// Convert them into Vec<JsStackFrame>
let mut frames: Vec<JsStackFrame> = match frames_v8 {
Some(frames_v8) => serde_v8::from_v8(scope, frames_v8.into()).unwrap(),
Some(frames_v8) => serde_v8::from_v8(scope, frames_v8.into()).unwrap_or(Vec::new()),
None => vec![],
};
let mut source_line = None;
Expand Down