Interfaces
- Script
Methods
SM createContext(initSandbox: vm.Context) vm.Context
Parameters:
Name |
Type |
Argument |
initSandbox |
vm.Context
|
<optional>
|
Returns:
{
vm.Context
}
SM createScript(code: string, filename: string) vm.Script
Parameters:
Name |
Type |
Argument |
code |
string
|
|
filename |
string
|
<optional>
|
Returns:
{
vm.Script
}
SM runInContext(code: string, context: vm.Context, filename: string) void
Parameters:
Name |
Type |
Argument |
code |
string
|
|
context |
vm.Context
|
|
filename |
string
|
<optional>
|
Returns:
{
void
}
SM runInNewContext(code: string, sandbox: vm.Context, filename: string) void
Parameters:
Name |
Type |
Argument |
code |
string
|
|
sandbox |
vm.Context
|
<optional>
|
filename |
string
|
<optional>
|
Returns:
{
void
}
SM runInThisContext(code: string, filename: string) void
Parameters:
Name |
Type |
Argument |
code |
string
|
|
filename |
string
|
<optional>
|
Returns:
{
void
}