@abaplint/runtime 2.3.119 → 2.3.120

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.
@@ -4,6 +4,18 @@ exports.gt = void 0;
4
4
  const types_1 = require("../types");
5
5
  const integer_1 = require("../types/integer");
6
6
  function gt(left, right) {
7
+ if (left instanceof types_1.FieldSymbol) {
8
+ if (left.getPointer() === undefined) {
9
+ throw "GETWA_NOT_ASSIGNED";
10
+ }
11
+ return gt(left.getPointer(), right);
12
+ }
13
+ else if (right instanceof types_1.FieldSymbol) {
14
+ if (right.getPointer() === undefined) {
15
+ throw "GETWA_NOT_ASSIGNED";
16
+ }
17
+ return gt(left, right.getPointer());
18
+ }
7
19
  if (left instanceof types_1.Table || right instanceof types_1.Table) {
8
20
  throw "runtime_todo, gt TABLE";
9
21
  }
@@ -14,7 +26,7 @@ function gt(left, right) {
14
26
  if (typeof left === "number" || typeof left === "string") {
15
27
  l = left;
16
28
  }
17
- else if (left instanceof types_1.Float) {
29
+ else if (left instanceof types_1.Float || left instanceof types_1.DecFloat34) {
18
30
  l = left.getRaw();
19
31
  }
20
32
  else {
@@ -24,7 +36,7 @@ function gt(left, right) {
24
36
  if (typeof right === "number" || typeof right === "string") {
25
37
  r = right;
26
38
  }
27
- else if (right instanceof types_1.Float) {
39
+ else if (right instanceof types_1.Float || right instanceof types_1.DecFloat34) {
28
40
  r = right.getRaw();
29
41
  }
30
42
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.3.119",
3
+ "version": "2.3.120",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",