File tree Expand file tree Collapse file tree 4 files changed +18
-21
lines changed Expand file tree Collapse file tree 4 files changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ repository = "https://github.com/denoland/deno"
40
40
41
41
[workspace .dependencies ]
42
42
deno_ast = { version = " 0.31.6" , features = [" transpiling" ] }
43
- deno_core = { version = " 0.232 .0" }
43
+ deno_core = { version = " 0.233 .0" }
44
44
45
45
deno_runtime = { version = " 0.133.0" , path = " ./runtime" }
46
46
napi_sym = { version = " 0.55.0" , path = " ./cli/napi/sym" }
Original file line number Diff line number Diff line change @@ -693,13 +693,13 @@ impl WebWorker {
693
693
694
694
maybe_result = & mut receiver => {
695
695
debug!( "received module evaluate {:#?}" , maybe_result) ;
696
- maybe_result. expect ( "Module evaluation result not provided." )
696
+ maybe_result
697
697
}
698
698
699
699
event_loop_result = self . js_runtime. run_event_loop( false ) => {
700
700
event_loop_result?;
701
- let maybe_result = receiver . await ;
702
- maybe_result . expect ( "Module evaluation result not provided." )
701
+
702
+ receiver . await
703
703
}
704
704
}
705
705
}
@@ -722,19 +722,16 @@ impl WebWorker {
722
722
723
723
maybe_result = & mut receiver => {
724
724
debug!( "received worker module evaluate {:#?}" , maybe_result) ;
725
- // If `None` is returned it means that runtime was destroyed before
726
- // evaluation was complete. This can happen in Web Worker when `self.close()`
727
- // is called at top level.
728
- maybe_result. unwrap_or( Ok ( ( ) ) )
725
+ maybe_result
729
726
}
730
727
731
728
event_loop_result = self . run_event_loop( poll_options) => {
732
729
if self . internal_handle. is_terminated( ) {
733
730
return Ok ( ( ) ) ;
734
731
}
735
732
event_loop_result?;
736
- let maybe_result = receiver . await ;
737
- maybe_result . unwrap_or ( Ok ( ( ) ) )
733
+
734
+ receiver . await
738
735
}
739
736
}
740
737
}
Original file line number Diff line number Diff line change @@ -548,13 +548,13 @@ impl MainWorker {
548
548
549
549
maybe_result = & mut receiver => {
550
550
debug!( "received module evaluate {:#?}" , maybe_result) ;
551
- maybe_result. expect ( "Module evaluation result not provided." )
551
+ maybe_result
552
552
}
553
553
554
554
event_loop_result = self . run_event_loop( false ) => {
555
555
event_loop_result?;
556
- let maybe_result = receiver . await ;
557
- maybe_result . expect ( "Module evaluation result not provided." )
556
+
557
+ receiver . await
558
558
}
559
559
}
560
560
}
You can’t perform that action at this time.
0 commit comments