mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-01-15 00:18:06 -05:00
to_val refactor, remove error macros
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
use std::rc::Rc;
|
||||
|
||||
use crate::vs_value::ToVal;
|
||||
|
||||
use super::bytecode_decoder::BytecodeDecoder;
|
||||
use super::bytecode_stack_frame::BytecodeStackFrame;
|
||||
use super::stack_frame::StackFrame;
|
||||
@@ -60,3 +62,9 @@ impl VsFunction {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
impl ToVal for VsFunction {
|
||||
fn to_val(self) -> Val {
|
||||
Val::Function(Rc::new(self))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user