@abaplint/runtime 2.13.42 → 2.13.43

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.
@@ -75,6 +75,7 @@ async function deleteInternal(target, options) {
75
75
  target.deleteIndex(target.getCurrentLoopIndex());
76
76
  return;
77
77
  }
78
+ let deleted = 0;
78
79
  for await (const i of (0, loop_1.loop)(target)) {
79
80
  index = abap.builtin.sy.get().tabix.get() - 1;
80
81
  if (options?.where) {
@@ -86,6 +87,7 @@ async function deleteInternal(target, options) {
86
87
  else {
87
88
  target.deleteIndex(index);
88
89
  }
90
+ deleted++;
89
91
  }
90
92
  }
91
93
  else if (options?.index && options.index.get() === index) {
@@ -99,5 +101,8 @@ async function deleteInternal(target, options) {
99
101
  target.deleteIndex(index);
100
102
  }
101
103
  }
104
+ if (options?.where) {
105
+ abap.builtin.sy.get().subrc.set(deleted > 0 ? 0 : 4);
106
+ }
102
107
  }
103
108
  //# sourceMappingURL=delete_internal.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.42",
3
+ "version": "2.13.43",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",