Checks a program against the instruction-set rules.
Program to check.
Validation mode. Stream chunks allow instructions that a complete program may not carry, and vice versa.
The outcome, with one issue per rule violation.
const result = validateProgram(chunk, { mode: "stream_chunk" });if (!result.ok) throw new Error(result.issues[0]?.message); Copy
const result = validateProgram(chunk, { mode: "stream_chunk" });if (!result.ok) throw new Error(result.issues[0]?.message);
Checks a program against the instruction-set rules.