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
johnyob authored and sam-finch-tezos committed Nov 29, 2023
1 parent 8a2acf6 commit 4da6387
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 4da6387

Please sign in to comment.