JsExecution
Defined in: jsEngine/engine/JsExecution.ts:165
Models the execution of a JavaScript string.
Constructors
new JsExecution()
new JsExecution(
params):JsExecution
Defined in: jsEngine/engine/JsExecution.ts:185
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Properties
app
readonlyapp:App
Defined in: jsEngine/engine/JsExecution.ts:166
code
readonlycode:string
Defined in: jsEngine/engine/JsExecution.ts:176
functionBuildError
functionBuildError:
undefined|Error
Defined in: jsEngine/engine/JsExecution.ts:179
functionBuildTime
functionBuildTime:
undefined|number
Defined in: jsEngine/engine/JsExecution.ts:182
functionRunError
functionRunError:
undefined|Error
Defined in: jsEngine/engine/JsExecution.ts:180
functionRunTime
functionRunTime:
undefined|number
Defined in: jsEngine/engine/JsExecution.ts:183
globals
readonlyglobals:JsExecutionGlobals
Defined in: jsEngine/engine/JsExecution.ts:174
plugin
readonlyplugin:JsEnginePlugin
Defined in: jsEngine/engine/JsExecution.ts:167
result
result:
unknown
Defined in: jsEngine/engine/JsExecution.ts:177
uuid
readonlyuuid:string
Defined in: jsEngine/engine/JsExecution.ts:175
Methods
buildFunction()
buildFunction():
void
Defined in: jsEngine/engine/JsExecution.ts:211
Creates the function from the code provided in the constructor.
Returns
void
getMessages()
getMessages():
MessageWrapper[]
Defined in: jsEngine/engine/JsExecution.ts:286
Returns the messages generated by the function.
Returns
MessageWrapper[]
isSuccessful()
isSuccessful():
boolean
Defined in: jsEngine/engine/JsExecution.ts:279
Returns true if the function was built and run without errors.
Returns
boolean
openStatsModal()
openStatsModal():
void
Defined in: jsEngine/engine/JsExecution.ts:293
Opens the execution stats modal for this execution.
Returns
void
runFunction()
runFunction():
Promise<void>
Defined in: jsEngine/engine/JsExecution.ts:242
Runs the function created by JsExecution.buildFunction.
Returns
Promise<void>