Documentation
¶
Rendered for js/wasm
Overview ¶
Package tinygojs centralizes TinyGo-safe syscall/js helper calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitPromise ¶
AwaitPromise attaches promise completion callbacks through a JS-owned helper when available. The helper defers callback execution away from the current JS event frame for TinyGo asyncify builds.
func RejectionMessage ¶
RejectionMessage returns a conservative error message for a JS promise rejection. Bldr's TinyGo helper passes numeric error classes instead of raw browser Error objects to avoid TinyGo stringifying arbitrary JS values.
func UseHelpers ¶
func UseHelpers() bool
UseHelpers reports whether TinyGo-specific JavaScript helpers may be used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.