mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
rename default panic tag to roc panic tag
This commit is contained in:
parent
6d851ec5e2
commit
72ff0cc800
2 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue