@abaplint/runtime 2.11.84 → 2.11.86

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.
@@ -30,5 +30,6 @@ exports.sy = new types_1.Structure({
30
30
  dbsys: new types_1.Character(10),
31
31
  batch: new types_1.Character(1),
32
32
  saprl: new types_1.Character(4).set("OPEN"),
33
+ cprog: new types_1.Character(40).set("OPEN_ABAP_TODO"),
33
34
  });
34
35
  //# sourceMappingURL=sy.js.map
@@ -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
  }
@@ -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, true);
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, corresponding = false) {
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.11.84",
3
+ "version": "2.11.86",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",