add lists & VM memory limits

This commit is contained in:
りき萌 2024-08-20 23:00:39 +02:00
parent 1c0fa7197c
commit 50094c3872
9 changed files with 54 additions and 6 deletions

View file

@ -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)?;