add lists & VM memory limits
This commit is contained in:
parent
1c0fa7197c
commit
50094c3872
9 changed files with 54 additions and 6 deletions
|
@ -44,6 +44,7 @@ fn eval(code: &str) -> Result<Value, Box<dyn Error>> {
|
|||
call_stack_capacity: 256,
|
||||
ref_capacity: 256,
|
||||
fuel: 32768,
|
||||
memory: 1024,
|
||||
};
|
||||
let mut vm = Vm::new(defs, &limits);
|
||||
let chunk_id = system.add_chunk(chunk)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue