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 committed Nov 16, 2023
1 parent b0084dd commit 6941e76
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 @@ -940,9 +940,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 6941e76

Please sign in to comment.