mirror of
https://github.com/fluencelabs/aquavm
synced 2025-07-03 16:41:33 +00:00
feat(execution-engine): Rc-based JSON value (#813)
Use custom JSON value type with Rc inside. It cannot be edited, but producing new values based on child element is very cheap. This new type is used exclusively in AquaVM internals. Interface APIs use serde_json's Value or JSON strings, as before. --------- Co-authored-by: raftedproc <71657594+raftedproc@users.noreply.github.com>
This commit is contained in:
@ -69,7 +69,7 @@ pub enum CatchableError {
|
||||
|
||||
/// This error type is produced by a fail instruction.
|
||||
#[error("fail with '{error}' is used without corresponding xor")]
|
||||
UserError { error: Rc<JValue> },
|
||||
UserError { error: JValue },
|
||||
|
||||
/// An error occurred while trying to apply lambda to a value.
|
||||
#[error(transparent)]
|
||||
|
Reference in New Issue
Block a user