@abaplint/runtime 2.5.46 → 2.5.47

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.
@@ -17,7 +17,7 @@ function gt(left, right) {
17
17
  return gt(left, right.getPointer());
18
18
  }
19
19
  if (left instanceof types_1.Table || right instanceof types_1.Table) {
20
- throw "runtime_todo, gt TABLE";
20
+ throw new Error("runtime_todo, gt TABLE");
21
21
  }
22
22
  if (left instanceof types_1.Hex || right instanceof types_1.Hex) {
23
23
  return gt_with_hex(left, right);
@@ -93,15 +93,18 @@ function get_hex_from_parameter(comparison_part) {
93
93
  hex_from_parameter = "0" + hex_from_parameter;
94
94
  }
95
95
  }
96
+ else if (comparison_part instanceof types_1.Character) {
97
+ hex_from_parameter = comparison_part.get();
98
+ }
96
99
  else if (comparison_part instanceof types_1.XString) {
97
100
  hex_from_parameter = comparison_part.get();
98
101
  }
99
102
  else {
100
- throw "runtime_todo, gt hex1";
103
+ throw new Error("runtime_todo, gt hex1");
101
104
  }
102
105
  break;
103
106
  default:
104
- throw "runtime_todo, gt hex2";
107
+ throw new Error("runtime_todo, gt hex2");
105
108
  }
106
109
  return hex_from_parameter;
107
110
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.5.46",
3
+ "version": "2.5.47",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",