@abaplint/runtime 2.6.33 → 2.6.35
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.
|
@@ -26,7 +26,7 @@ function initial(val) {
|
|
|
26
26
|
return val.get().match(/^ *$/) !== null;
|
|
27
27
|
}
|
|
28
28
|
else if (val instanceof types_1.FieldSymbol && val.getPointer() === undefined) {
|
|
29
|
-
throw "FS not assigned";
|
|
29
|
+
throw new Error("FS not assigned");
|
|
30
30
|
}
|
|
31
31
|
else if (val instanceof types_1.FieldSymbol) {
|
|
32
32
|
const res = initial(val.getPointer());
|
|
@@ -15,8 +15,14 @@ function assign(input) {
|
|
|
15
15
|
const split = input.dynamicName.split(/->|-/);
|
|
16
16
|
split.shift();
|
|
17
17
|
for (const s of split) {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
if (s === "*") {
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
input.dynamicSource = input.dynamicSource.dereference();
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
input.dynamicSource = input.dynamicSource.get()[s.toLowerCase().replace(/[~\\/]/g, "$")];
|
|
25
|
+
}
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
else {
|