IframeSandbox
Nodepod API / src / IframeSandbox
Class: IframeSandbox
Section titled “Class: IframeSandbox”Defined in: src/iframe-sandbox.ts:21
Implements
Section titled “Implements”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new IframeSandbox(
sandboxUrl,vol,cfg?):IframeSandbox
Defined in: src/iframe-sandbox.ts:33
Parameters
Section titled “Parameters”sandboxUrl
Section titled “sandboxUrl”string
EngineConfig = {}
Returns
Section titled “Returns”IframeSandbox
Methods
Section titled “Methods”clearCache()
Section titled “clearCache()”clearCache():
void
Defined in: src/iframe-sandbox.ts:131
Returns
Section titled “Returns”void
Implementation of
Section titled “Implementation of”execute()
Section titled “execute()”execute(
code,filename?):Promise<ExecutionOutcome>
Defined in: src/iframe-sandbox.ts:121
Parameters
Section titled “Parameters”string
filename?
Section titled “filename?”string
Returns
Section titled “Returns”Promise<ExecutionOutcome>
Implementation of
Section titled “Implementation of”getVolume()
Section titled “getVolume()”getVolume():
MemoryVolume
Defined in: src/iframe-sandbox.ts:135
Returns
Section titled “Returns”Implementation of
Section titled “Implementation of”runFile()
Section titled “runFile()”runFile(
filename):Promise<ExecutionOutcome>
Defined in: src/iframe-sandbox.ts:126
Parameters
Section titled “Parameters”filename
Section titled “filename”string
Returns
Section titled “Returns”Promise<ExecutionOutcome>
Implementation of
Section titled “Implementation of”terminate()
Section titled “terminate()”terminate():
void
Defined in: src/iframe-sandbox.ts:137
Returns
Section titled “Returns”void