steel
steel copied to clipboard
sandboxed environment errors out
I was trying to toy around with steel in a prototype I'm doing. Especially the sandboxed environment looked nice to me but it errors out when constructing.
A failing test demonstrating the issue:
#[test]
fn test_sandboxed_environment() {
let mut engine = Engine::new_sandboxed();
assert!(engine.compile_and_run_raw_program("(+ 1 1)").is_ok());
}
---- steel_vm::engine::engine_api_tests::test_sandboxed_environment stdout ---- thread 'steel_vm::engine::engine_api_tests::test_sandboxed_environment' panicked at crates/steel-core/src/steel_vm/engine.rs:959:50: called
Result::unwrap()
on anErr
value: SteelErr { repr: Repr { kind: FreeIdentifier, message: "Cannot reference an identifier before its definition: #%function-ptr-table", span: Some(0..0), stack_trace: None } } note: run withRUST_BACKTRACE=1
environment variable to display a backtrace