Expand description
QuickJS backend for the Jolt JavaScript runtime.
Provides QuickJsRuntime, a JsRuntime
implementation backed by QuickJS via
the rquickjs crate. Suitable for Android, Linux, Windows, and any
other target where a small (~1 MB) embeddable JS engine is needed.
§Usage
use jolt_quickjs::QuickJsRuntime;
use jolt_core::{JsRuntime, JsValue};
let mut rt = QuickJsRuntime::new().unwrap();
let result = rt.eval("2 + 2").unwrap();
assert_eq!(result, JsValue::Int(4));