@magic-xpa/engine 4.1000.0-dev4100.394 → 4.1000.0-dev4100.395
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/CurrentClientVersion.mjs +2 -2
- package/esm2020/src/exp/ExpressionEvaluator.mjs +8 -4
- package/fesm2015/magic-xpa-engine.mjs +19 -13
- package/fesm2015/magic-xpa-engine.mjs.map +1 -1
- package/fesm2020/magic-xpa-engine.mjs +7 -3
- package/fesm2020/magic-xpa-engine.mjs.map +1 -1
- package/package.json +4 -4
- package/src/exp/ExpressionEvaluator.d.ts +1 -1
@@ -11777,7 +11777,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
11777
11777
|
Exp_params = new Array(nArgs);
|
11778
11778
|
for (j = 0; j < nArgs; j++)
|
11779
11779
|
Exp_params[nArgs - 1 - j] = valStack.pop();
|
11780
|
-
this.eval_op_CallJS(this.ExpTask, valStack.pop().StrVal, Exp_params, resVal);
|
11780
|
+
await this.eval_op_CallJS(this.ExpTask, valStack.pop().StrVal, Exp_params, resVal);
|
11781
11781
|
}
|
11782
11782
|
break;
|
11783
11783
|
case ExpressionInterface.EXP_OP_SET_COOKIE:
|
@@ -14155,7 +14155,7 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
14155
14155
|
resVal.MgNumVal = NUM_TYPE.from_double(programIndex);
|
14156
14156
|
}
|
14157
14157
|
}
|
14158
|
-
eval_op_CallJS(task, methodName, expVal, resVal) {
|
14158
|
+
async eval_op_CallJS(task, methodName, expVal, resVal) {
|
14159
14159
|
resVal.Attr = StorageAttribute.ALPHA;
|
14160
14160
|
resVal.StrVal = '';
|
14161
14161
|
if (task.isMainProg()) {
|
@@ -14165,6 +14165,10 @@ class ExpressionEvaluator extends GuiExpressionEvaluator {
|
|
14165
14165
|
let form = task.getForm();
|
14166
14166
|
let args = this.params2arguments(expVal, 0, expVal.length);
|
14167
14167
|
if (!isNullOrUndefined(args)) {
|
14168
|
+
if (task.isFirstRecordCycle()) {
|
14169
|
+
Commands.invoke();
|
14170
|
+
await Thread.Sleep(10);
|
14171
|
+
}
|
14168
14172
|
resVal.StrVal = Commands.addCallJS(form, form.UniqueName, methodName, args);
|
14169
14173
|
resVal.Attr = StorageAttribute.ALPHA;
|
14170
14174
|
}
|
@@ -29542,7 +29546,7 @@ class CommandsTable {
|
|
29542
29546
|
}
|
29543
29547
|
}
|
29544
29548
|
|
29545
|
-
let CurrentClientVersion = '4.1000.0-dev4100.
|
29549
|
+
let CurrentClientVersion = '4.1000.0-dev4100.395';
|
29546
29550
|
|
29547
29551
|
class ClientManager {
|
29548
29552
|
static get Instance() {
|