@abaplint/runtime 2.0.41 → 2.0.44

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,6 +17,10 @@ function compareTables(left, right) {
17
17
  return true;
18
18
  }
19
19
  function eq(left, right) {
20
+ /*
21
+ console.dir(left);
22
+ console.dir(right);
23
+ */
20
24
  if (right instanceof types_1.FieldSymbol) {
21
25
  return eq(left, right.getPointer());
22
26
  }
@@ -56,7 +60,7 @@ function eq(left, right) {
56
60
  }
57
61
  let l = undefined;
58
62
  if (left instanceof types_1.Character) {
59
- l = left.get().trimEnd();
63
+ l = left.get().replace(/ *$/, "");
60
64
  }
61
65
  else if (typeof left === "object") {
62
66
  l = left.get();
@@ -66,7 +70,7 @@ function eq(left, right) {
66
70
  }
67
71
  let r = undefined;
68
72
  if (right instanceof types_1.Character) {
69
- r = right.get().trimEnd();
73
+ r = right.get().replace(/ *$/, "");
70
74
  }
71
75
  else if (typeof right === "object") {
72
76
  r = right.get();
@@ -110,6 +114,10 @@ function eq(left, right) {
110
114
  }
111
115
  }
112
116
  }
117
+ /*
118
+ console.dir(l);
119
+ console.dir(r);
120
+ */
113
121
  return l === r;
114
122
  }
115
123
  exports.eq = eq;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.0.41",
3
+ "version": "2.0.44",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",