A JavaScript engine in pure Zig.
HEALTH ? 98 / Healthy
A JavaScript engine in pure Zig.
// readme
Core engine and importable js module code are Zig; the static library exports JavaScriptCore-shaped C headers/symbols, with macOS Objective-C bridge glue in src/objc_bridge.m. The package depends on zig-regex and zig-gc, not bundled JSC/V8; system JavaScriptCore is used only by explicit differential and benchmark targets. APIs are pre-stabilization.
const js = @import("js");
const ctx = try js.Context.create(allocator);
defer ctx.destroy();
const value = try ctx.evaluate("let x = 40; x + 2");
| profile | result | evidence |
|---|---|---|
| configured test262 | 53,175 / 53,175 | run · data |
| ten-profile WebAssembly matrix | 151,802 / 151,802 applicable | Core 3: 63,964/63,964 · matrix · upstream-main shadow · reproduce |