mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
docs(std/wasi): add a basic description of Context (#8711)
This commit is contained in:
parent
77b2bc3bc1
commit
b7faa27704
1 changed files with 8 additions and 0 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Reference in a new issue