File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -653,9 +653,13 @@ impl JsError {
653
653
"JsStackFrame::from_callsite_object raised an exception" ,
654
654
)
655
655
. to_rust_string_lossy ( tc_scope) ;
656
- panic ! (
657
- "Failed to create JsStackFrame from callsite object: {message}"
658
- ) ;
656
+ #[ allow( clippy:: print_stderr) ]
657
+ {
658
+ eprintln ! (
659
+ "warning: Failed to create JsStackFrame from callsite object: {message}. This is a bug in deno"
660
+ ) ;
661
+ }
662
+ break ;
659
663
} ;
660
664
buf. push ( stack_frame) ;
661
665
}
@@ -1317,7 +1321,11 @@ fn format_stack_trace<'s>(
1317
1321
. exception ( )
1318
1322
. expect ( "JsStackFrame::from_callsite_object raised an exception" )
1319
1323
. to_rust_string_lossy ( tc_scope) ;
1320
- panic ! ( "Failed to create JsStackFrame from callsite object: {message}" ) ;
1324
+ #[ allow( clippy:: print_stderr) ]
1325
+ {
1326
+ eprintln ! ( "warning: Failed to create JsStackFrame from callsite object: {message}; Result so far: {result}. This is a bug in deno" ) ;
1327
+ }
1328
+ break ;
1321
1329
} ;
1322
1330
write ! ( result, "\n at {}" , format_frame:: <NoAnsiColors >( & frame) )
1323
1331
. unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments