@abaplint/runtime 2.7.60 → 2.7.62

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.
@@ -38,6 +38,9 @@ function eq(left, right) {
38
38
  return right.getTrimEnd() === left.getTrimEnd();
39
39
  }
40
40
  }
41
+ else if (left instanceof types_1.Integer) {
42
+ return (parseInt(right.get(), 10) || 0) === left.get();
43
+ }
41
44
  else if (left instanceof types_1.String) {
42
45
  return right.getTrimEnd() === left.get();
43
46
  }
@@ -53,8 +56,13 @@ function eq(left, right) {
53
56
  else if (right instanceof types_1.Numc && left instanceof types_1.Numc && right.getLength() === left.getLength()) {
54
57
  return right.get() === left.get();
55
58
  }
56
- else if (right instanceof types_1.Integer && left instanceof types_1.Integer) {
57
- return right.get() === left.get();
59
+ else if (right instanceof types_1.Integer) {
60
+ if (left instanceof types_1.Integer) {
61
+ return right.get() === left.get();
62
+ }
63
+ else if (left instanceof types_1.Character) {
64
+ return (parseInt(left.get(), 10) || 0) === right.get();
65
+ }
58
66
  }
59
67
  else if (right instanceof types_1.DataReference && left instanceof types_1.DataReference) {
60
68
  return right.getPointer() === left.getPointer();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.60",
3
+ "version": "2.7.62",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",