Dynamic module vm

Index

Interfaces

Functions

Functions

createContext(initSandbox?: Context): Context

Parameters

Returns

Context

createScript(code: string, filename?: string): Script

Parameters

  • code: string
  • filename?: string optional

Returns

Script

runInContext(code: string, context: Context, filename?: string)

Parameters

  • code: string
  • context: Context
  • filename?: string optional

runInNewContext(code: string, sandbox?: Context, filename?: string)

Parameters

  • code: string
  • sandbox?: Context optional
  • filename?: string optional

runInThisContext(code: string, filename?: string)

Parameters

  • code: string
  • filename?: string optional