@abaplint/runtime 2.1.31 → 2.1.34

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.
@@ -13,6 +13,8 @@ function* loop(table, options) {
13
13
  }
14
14
  const length = table.array().length;
15
15
  if (length === 0) {
16
+ // @ts-ignore
17
+ abap.builtin.sy.get().subrc.set(4);
16
18
  return;
17
19
  }
18
20
  const loopFrom = (options === null || options === void 0 ? void 0 : options.from) && (options === null || options === void 0 ? void 0 : options.from.get()) > 0 ? options.from.get() - 1 : 0;
@@ -36,8 +38,8 @@ function* loop(table, options) {
36
38
  }
37
39
  // @ts-ignore
38
40
  abap.builtin.sy.get().tabix.set(loopIndex.index + 1);
39
- yield current;
40
41
  entered = true;
42
+ yield current;
41
43
  loopIndex.index++;
42
44
  loopTo = (options === null || options === void 0 ? void 0 : options.to) && options.to.get() < array.length ? options.to.get() : array.length;
43
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.1.31",
3
+ "version": "2.1.34",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",