@abaplint/runtime 2.13.10 → 2.13.12

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.
@@ -50,7 +50,9 @@ function convert(source, target) {
50
50
  }
51
51
  zone = zone.trimEnd();
52
52
  }
53
+ let utcUsed = false;
53
54
  if (zone.trim() === "") {
55
+ utcUsed = true;
54
56
  zone = "UTC";
55
57
  }
56
58
  ////////////////////////
@@ -85,5 +87,11 @@ function convert(source, target) {
85
87
  if (target.time) {
86
88
  target.time.set(t);
87
89
  }
90
+ if (utcUsed) {
91
+ abap.builtin.sy.get().subrc.set(4);
92
+ }
93
+ else {
94
+ abap.builtin.sy.get().subrc.set(0);
95
+ }
88
96
  }
89
97
  //# sourceMappingURL=convert.js.map
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.find = find;
4
4
  const abap_regex_1 = require("../abap_regex");
5
5
  const types_1 = require("../types");
6
+ const throw_error_1 = require("../throw_error");
6
7
  function find(input, options) {
7
8
  let sectionOffset = options.sectionOffset?.get();
8
9
  if (sectionOffset && options.byteMode) {
@@ -61,6 +62,9 @@ function find(input, options) {
61
62
  else {
62
63
  let blah = input.get();
63
64
  if (sectionOffset) {
65
+ if (sectionOffset > blah.length) {
66
+ (0, throw_error_1.throwError)("CX_SY_RANGE_OUT_OF_BOUNDS");
67
+ }
64
68
  blah = blah.substr(sectionOffset);
65
69
  }
66
70
  let temp;
@@ -152,7 +156,7 @@ function find(input, options) {
152
156
  options.length?.set(matches[0][0].length);
153
157
  }
154
158
  else {
155
- options.length?.clear();
159
+ // options.length?.clear();
156
160
  }
157
161
  }
158
162
  //# sourceMappingURL=find.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.13.10",
3
+ "version": "2.13.12",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",