@abaplint/runtime 2.7.160 → 2.7.161

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.
@@ -71,9 +71,15 @@ function eq(left, right) {
71
71
  else if (left instanceof types_1.Character) {
72
72
  return (parseInt(left.get(), 10) || 0) === right.get();
73
73
  }
74
+ else if (left instanceof types_1.Float) {
75
+ return right.get() === left.getRaw();
76
+ }
74
77
  else if (left instanceof types_1.Numc) {
75
78
  return right.get() === parseInt(left.get(), 10);
76
79
  }
80
+ else if (left instanceof types_1.Packed) {
81
+ return right.get() === left.get();
82
+ }
77
83
  }
78
84
  else if (right instanceof types_1.DataReference && left instanceof types_1.DataReference) {
79
85
  return right.getPointer() === left.getPointer();
@@ -113,6 +119,9 @@ function eq(left, right) {
113
119
  if (left instanceof types_1.Packed) {
114
120
  return right.get() === left.get();
115
121
  }
122
+ else if (left instanceof types_1.Integer) {
123
+ return right.get() === left.get();
124
+ }
116
125
  }
117
126
  else if (right instanceof types_1.Integer8) {
118
127
  if (left instanceof types_1.Integer
@@ -120,12 +129,16 @@ function eq(left, right) {
120
129
  || left instanceof types_1.Packed) {
121
130
  return right.get() === left.get();
122
131
  }
132
+ else if (left instanceof types_1.Float) {
133
+ return right.get() === left.getRaw();
134
+ }
123
135
  }
124
136
  else if (right instanceof types_1.Float) {
125
137
  if (left instanceof types_1.Float) {
126
138
  return right.getRaw() === left.getRaw();
127
139
  }
128
- else if (left instanceof types_1.Integer) {
140
+ else if (left instanceof types_1.Integer
141
+ || left instanceof types_1.Integer8) {
129
142
  return right.getRaw() === left.get();
130
143
  }
131
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.160",
3
+ "version": "2.7.161",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -29,7 +29,7 @@
29
29
  "author": "abaplint",
30
30
  "license": "MIT",
31
31
  "devDependencies": {
32
- "@types/chai": "^4.3.11",
32
+ "@types/chai": "^4.3.12",
33
33
  "@types/mocha": "^10.0.6",
34
34
  "chai": "^4.4.1",
35
35
  "mocha": "^10.3.0",