diff options
-rw-r--r-- | std/wasi/snapshot_preview1.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts index 7160bbee9..2ec51da88 100644 --- a/std/wasi/snapshot_preview1.ts +++ b/std/wasi/snapshot_preview1.ts @@ -285,6 +285,14 @@ export interface ContextOptions { exitOnReturn?: boolean; } +/** + * The Context class provides the environment required to run WebAssembly + * modules compiled to run with the WebAssembly System Interface. + * + * Each context represents a distinct sandboxed environment and must have its + * command-line arguments, environment variables, and pre-opened directory + * structure configured explicitly. + */ export default class Context { args: string[]; env: { [key: string]: string | undefined }; |