feat(registry): checkpoint PLN-0176 foundations and validated partial integrations
This commit is contained in:
@@ -264,7 +264,9 @@ fn stack_value(value: &VmValue) -> Value {
|
||||
VmValue::Float(v) => json!({"kind":"float64","value":v.to_string()}),
|
||||
VmValue::Boolean(v) => json!({"kind":"boolean","value":v}),
|
||||
VmValue::String(v) => json!({"kind":"string","value":v.as_ref()}),
|
||||
VmValue::HeapRef(v) => json!({"kind":"heap_ref","value":v.0}),
|
||||
VmValue::HeapRef(v) => {
|
||||
json!({"kind":"heap_ref","value":{"index":v.index,"generation":v.generation}})
|
||||
}
|
||||
VmValue::Null => json!({"kind":"null","value":null}),
|
||||
}
|
||||
}
|
||||
@@ -287,6 +289,7 @@ pub(super) fn fault(report: &CrashReport) -> Value {
|
||||
}
|
||||
CrashReport::VmInit { error } => {
|
||||
let code = match error {
|
||||
VmInitError::RuntimeResourceLimit(_) => "runtime_resource_limit",
|
||||
VmInitError::InvalidFormat => "invalid_format",
|
||||
VmInitError::UnsupportedFormat => "unsupported_format",
|
||||
VmInitError::ImageLoadFailed(_) => "image_load_failed",
|
||||
|
||||
Reference in New Issue
Block a user