airsl 0.1.3

Embeddable Lua 5.4 runtime with a capability-gated sandbox and a host standard library
Documentation
1
2
3
4
5
6
7
8
9
-- A script that fails the ordinary way: it raises.
--
-- Stands in for the realistic case — a hook that hit a condition it cannot handle and said so.
-- Nothing here is a resource breach, which is the whole point: the host has to be able to tell
-- this apart from a script that ate the machine.

local reason = arg[1] or "no reason given"

error("enforce: " .. reason)