- The payload formatters should be simple and lightweight.
- Use arithmetic operations and bit shifts to convert binary data to fields.
- Avoid using non-trivial logic or polyfills.
Payload formatters use ECMAScript 5.1 (2009), which has some distinct differences compared to newer, commonly used ECMAScript revisions. See here for a quick comparison.
For security, the runtime does not support modules (
require syntax) or any network or file system access.
Learn more about payload formatters and examples: