@abaplint/runtime 2.11.83 → 2.11.85
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.
|
@@ -92,6 +92,9 @@ class Structure {
|
|
|
92
92
|
for (let i = 0; i < keys1.length; i++) {
|
|
93
93
|
const key1 = keys1[i];
|
|
94
94
|
const key2 = keys2[i];
|
|
95
|
+
if (this.value[key2] === undefined) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
95
98
|
// todo: can clone() be removed? might be needed for like Structure and Tables?
|
|
96
99
|
this.value[key2].set(obj[key1].clone());
|
|
97
100
|
}
|
package/build/src/types/table.js
CHANGED
|
@@ -12,7 +12,6 @@ const sort_1 = require("../statements/sort");
|
|
|
12
12
|
const character_1 = require("./character");
|
|
13
13
|
const hex_1 = require("./hex");
|
|
14
14
|
const hex_uint8_1 = require("./hex_uint8");
|
|
15
|
-
const move_corresponding_1 = require("../statements/move_corresponding");
|
|
16
15
|
var TableAccessType;
|
|
17
16
|
(function (TableAccessType) {
|
|
18
17
|
TableAccessType["standard"] = "STANDARD";
|
|
@@ -498,7 +497,7 @@ class Table {
|
|
|
498
497
|
return ref;
|
|
499
498
|
}
|
|
500
499
|
else {
|
|
501
|
-
const val = this.cloneRow(item
|
|
500
|
+
const val = this.cloneRow(item);
|
|
502
501
|
this.value.push(val);
|
|
503
502
|
return val;
|
|
504
503
|
}
|
|
@@ -519,7 +518,7 @@ class Table {
|
|
|
519
518
|
this.value.sort(compareFn);
|
|
520
519
|
}
|
|
521
520
|
///////////////////////////
|
|
522
|
-
cloneRow(item
|
|
521
|
+
cloneRow(item) {
|
|
523
522
|
// make sure to do conversion if needed
|
|
524
523
|
if (typeof item === "number") {
|
|
525
524
|
const tmp = this.getRowType().clone();
|
|
@@ -537,11 +536,6 @@ class Table {
|
|
|
537
536
|
const val = item.clone();
|
|
538
537
|
return val;
|
|
539
538
|
}
|
|
540
|
-
else if (corresponding === true && this.isStructured === true && item instanceof structure_1.Structure) {
|
|
541
|
-
const tmp = this.getRowType().clone();
|
|
542
|
-
(0, move_corresponding_1.moveCorresponding)(item, tmp);
|
|
543
|
-
return tmp;
|
|
544
|
-
}
|
|
545
539
|
else {
|
|
546
540
|
const tmp = this.getRowType().clone();
|
|
547
541
|
tmp.set(item);
|