Expand description
TypeScript is compiled at publication; workers execute stored JavaScript.
Structs§
- Compiled
Script - Immutable compilation receipt. OXC checks syntax and binding semantics, not TypeScript’s full type system. Host boundaries validate values at runtime.
- Execution
Failure - An unhandled exception preserves a host origin only when it is the exact exception object created for that host call. Messages and copied properties cannot confer origin; caught failures followed by normal results remain normal.
- Host
Failure - Trusted host failure. The optional origin is private to this invocation’s native caller and is never serialized into guest-visible JSON or properties.
- Limits
- Script
Error
Functions§
- compile_
typescript - execute
- Fresh QuickJS VM without filesystem, network, timers, Node globals or module loader. Every side effect passes through the trusted host, never event data. The host must bound blocking calls and enforce capabilities and transactions.
- execute_
entry - Same sandbox as
execute, calling the global functionentry(event)instead ofworkflow(event). The entry may return a value or a promise. - execute_
entry_ with_ host_ origins - Execute with native exception identity tracking. Guest JavaScript cannot mint an origin by raising an error string, SQLSTATE, property, or copied exception.
- is_
entry_ name - True when
namecan name a plain global JavaScript function.