Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Revocable Proxies

Proxy:revocable creates a proxy that can be permanently disabled:

(bind (object proxy revoke) (Proxy:revocable target handler))
;; Use proxy normally...
(revoke)
;; Any further access throws TypeError

After revoke(), every operation on the proxy throws. The target is unaffected — only the proxy is disabled.

Use cases: granting temporary access to an object (timed sessions, capability-based security), sandbox teardown, test cleanup.