diff --git a/boa_engine/src/error.rs b/boa_engine/src/error.rs index 839f404c687..a103197d6b6 100644 --- a/boa_engine/src/error.rs +++ b/boa_engine/src/error.rs @@ -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.")