0
0
Fork 0
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:
Casper Beyer 2020-12-10 20:38:31 +08:00 committed by GitHub
parent 77b2bc3bc1
commit b7faa27704
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 };