rename default panic tag to roc panic tag

This commit is contained in:
Ayaz Hafiz 2022-11-22 15:14:14 -06:00
parent 6d851ec5e2
commit 72ff0cc800
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 4 additions and 4 deletions

View file

@ -185,7 +185,7 @@ pub struct Env<'a, 'ctx, 'env> {
#[repr(u32)]
pub enum PanicTagId {
NullTerminatedString = 0,
RocPanic = 0,
}
impl std::convert::TryFrom<u32> for PanicTagId {
@ -193,7 +193,7 @@ impl std::convert::TryFrom<u32> for PanicTagId {
fn try_from(value: u32) -> Result<Self, Self::Error> {
match value {
0 => Ok(PanicTagId::NullTerminatedString),
0 => Ok(PanicTagId::RocPanic),
_ => Err(()),
}
}
@ -5529,7 +5529,7 @@ pub(crate) fn throw_exception<'a, 'ctx, 'env>(
let str = build_string_literal(env, parent, message);
env.call_panic(str, PanicTagId::NullTerminatedString);
env.call_panic(str, PanicTagId::RocPanic);
builder.build_unreachable();
}