InternalAPI
The internal API provides access to some of js engines internals.
Constructors
new InternalAPI()
new InternalAPI(
apiInstance
):InternalAPI
Parameters
Parameter | Type |
---|---|
|
Returns
Defined in
Methods
createExecutionGlobals()
createExecutionGlobals(
options
):JsExecutionGlobals
Creates execution globals.
Parameters
Parameter | Type | Description |
---|---|---|
|
Returns
Defined in
createRenderer()
createRenderer(
container
,sourcePath
,component
):ResultRenderer
Creates a result renderer.
Parameters
Parameter | Type | Description |
---|---|---|
|
||
|
|
|
|
|
Returns
Defined in
execute()
execute(
params
):Promise
<JsExecution
>
Executes the given code.
Parameters
Parameter | Type | Description |
---|---|---|
|
Returns
Defined in
executeFile()
executeFile(
path
,params
):Promise
<JsExecution
>
Load and execute the given file.
Parameters
Parameter | Type | Description |
---|---|---|
|
|
|
|
|
Returns
Defined in
executeFileSimple()
executeFileSimple(
path
,params
?):Promise
<JsExecution
>
Lead and execute the given file. This method also handles the lifetime of the execution. The component for the execution is created and destroyed automatically.
Parameters
Parameter | Type | Description |
---|---|---|
|
|
|
|
|
Returns
Defined in
getContextForFile()
getContextForFile(
path
):Promise
<JsExecutionContext
>
Gets the execution context for a specific file, throws when the file does not exist.
Parameters
Parameter | Type | Description |
---|---|---|
|
|