@abaplint/runtime 2.10.27 → 2.10.28
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 +8 -0
- package/package.json +1 -1
package/build/src/compare/gt.js
CHANGED
|
@@ -65,6 +65,14 @@ function gt(left, right) {
|
|
|
65
65
|
const r = BigInt((0, _parse_1.parse)(right));
|
|
66
66
|
return l > r;
|
|
67
67
|
}
|
|
68
|
+
if (left instanceof types_1.Structure || right instanceof types_1.Structure) {
|
|
69
|
+
if (!(right instanceof types_1.Structure)) {
|
|
70
|
+
return gt(left.getCharacter(), right);
|
|
71
|
+
}
|
|
72
|
+
else if (!(left instanceof types_1.Structure)) {
|
|
73
|
+
return gt(left, right.getCharacter());
|
|
74
|
+
}
|
|
75
|
+
}
|
|
68
76
|
let l = undefined;
|
|
69
77
|
if (typeof left === "number" || typeof left === "string") {
|
|
70
78
|
l = left;
|