@abaplint/runtime 2.5.45 → 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.
- package/build/src/compare/gt.js +6 -3
- package/package.json +1 -1
package/build/src/compare/gt.js
CHANGED
|
@@ -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
|
}
|