Skip to content

Commit

Permalink
remove panic converting NoInstructonsRemaining to OpaqeError
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-finch-tezos authored and johnyob committed Oct 27, 2023
1 parent 28d492f commit 0ad6491
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boa_engine/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,9 +819,7 @@ impl JsNativeError {
JsNativeErrorKind::Uri => (constructors.uri_error().prototype(), ErrorKind::Uri),
#[cfg(feature = "fuzz")]
JsNativeErrorKind::NoInstructionsRemain => {
unreachable!(
"The NoInstructionsRemain native error cannot be converted to an opaque type."
)
(constructors.eval_error().prototype(), ErrorKind::Eval)
}
JsNativeErrorKind::RuntimeLimit => {
panic!("The RuntimeLimit native error cannot be converted to an opaque type.")
Expand Down

0 comments on commit 0ad6491

Please sign in to comment.