JsExecution
Models the execution of a JavaScript string.
Constructors
new JsExecution()
new JsExecution(
params
):JsExecution
Parameters
Parameter | Type |
---|---|
|
Returns
Defined in
jsEngine/engine/JsExecution.ts:122
Properties
app
readonly
app:App
Defined in
jsEngine/engine/JsExecution.ts:103
code
readonly
code:string
Defined in
jsEngine/engine/JsExecution.ts:113
functionBuildError
functionBuildError:
undefined
|Error
Defined in
jsEngine/engine/JsExecution.ts:116
functionBuildTime
functionBuildTime:
undefined
|number
Defined in
jsEngine/engine/JsExecution.ts:119
functionRunError
functionRunError:
undefined
|Error
Defined in
jsEngine/engine/JsExecution.ts:117
functionRunTime
functionRunTime:
undefined
|number
Defined in
jsEngine/engine/JsExecution.ts:120
globals
readonly
globals:JsExecutionGlobals
Defined in
jsEngine/engine/JsExecution.ts:111
plugin
readonly
plugin:JsEnginePlugin
Defined in
jsEngine/engine/JsExecution.ts:104
result
result:
unknown
Defined in
jsEngine/engine/JsExecution.ts:114
uuid
readonly
uuid:string
Defined in
jsEngine/engine/JsExecution.ts:112
Methods
buildFunction()
buildFunction():
void
Creates the function from the code provided in the constructor.
Returns
void
Defined in
jsEngine/engine/JsExecution.ts:145
getMessages()
getMessages():
MessageWrapper
[]
Returns the messages generated by the function.
Returns
MessageWrapper
[]
Defined in
jsEngine/engine/JsExecution.ts:220
isSuccessful()
isSuccessful():
boolean
Returns true if the function was built and run without errors.
Returns
boolean
Defined in
jsEngine/engine/JsExecution.ts:213
openStatsModal()
openStatsModal():
void
Opens the execution stats modal for this execution.
Returns
void
Defined in
jsEngine/engine/JsExecution.ts:227
runFunction()
runFunction():
Promise
<void
>
Runs the function created by JsExecution.buildFunction.
Returns
Promise
<void
>