diff options
Diffstat (limited to 'std/wasi/snapshot_preview1.ts')
-rw-r--r-- | std/wasi/snapshot_preview1.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/std/wasi/snapshot_preview1.ts b/std/wasi/snapshot_preview1.ts index 0e32e3a2b..ab9da73ec 100644 --- a/std/wasi/snapshot_preview1.ts +++ b/std/wasi/snapshot_preview1.ts @@ -277,14 +277,14 @@ function errno(err: Error) { } } -export interface ModuleOptions { +export interface ContextOptions { args?: string[]; env?: { [key: string]: string | undefined }; preopens?: { [key: string]: string }; memory?: WebAssembly.Memory; } -export default class Module { +export default class Context { args: string[]; env: { [key: string]: string | undefined }; memory: WebAssembly.Memory; @@ -294,7 +294,7 @@ export default class Module { exports: Record<string, Function>; - constructor(options: ModuleOptions) { + constructor(options: ContextOptions) { this.args = options.args ? options.args : []; this.env = options.env ? options.env : {}; this.memory = options.memory!; |