@abaplint/runtime 2.10.23 → 2.10.25

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.
@@ -53,6 +53,7 @@ export declare class ABAP {
53
53
  W3MI: {
54
54
  [name: string]: any;
55
55
  };
56
+ internalIdCounter: number;
56
57
  statements: Statements;
57
58
  types: typeof types;
58
59
  builtin: typeof builtin;
@@ -36,6 +36,7 @@ class ABAP {
36
36
  this.SMIM = {};
37
37
  this.TypePools = {};
38
38
  this.W3MI = {};
39
+ this.internalIdCounter = 1;
39
40
  this.types = types;
40
41
  this.builtin = builtin;
41
42
  this.operators = operators;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Table = exports.HashedTable = exports.TableFactory = exports.LoopController = exports.TableKeyType = exports.TableAccessType = void 0;
4
4
  const integer_1 = require("./integer");
5
+ const abap_object_1 = require("./abap_object");
5
6
  const string_1 = require("./string");
6
7
  const clone_1 = require("../clone");
7
8
  const structure_1 = require("./structure");
@@ -103,6 +104,10 @@ class HashedTable {
103
104
  if (data instanceof structure_1.Structure) {
104
105
  hash += k + ":" + data.getCharacter() + "|";
105
106
  }
107
+ else if (data instanceof abap_object_1.ABAPObject) {
108
+ const moo = "OpenABAPInternalObjectId=" + data.get().INTERNAL_ID;
109
+ hash += k + ":" + moo + "|";
110
+ }
106
111
  else {
107
112
  // @ts-ignore
108
113
  hash += k + ":" + data.get() + "|";
@@ -114,6 +119,9 @@ class HashedTable {
114
119
  if (val instanceof structure_1.Structure) {
115
120
  val = val.getCharacter();
116
121
  }
122
+ else if (val instanceof abap_object_1.ABAPObject) {
123
+ val = "OpenABAPInternalObjectId=" + val.get().INTERNAL_ID;
124
+ }
117
125
  else {
118
126
  val = val.get();
119
127
  }
@@ -155,6 +163,9 @@ class HashedTable {
155
163
  else if (field instanceof hex_uint8_1.HexUInt8 && val instanceof hex_uint8_1.HexUInt8 && field.getLength() === val.getLength()) {
156
164
  val = val.get();
157
165
  }
166
+ else if (val instanceof abap_object_1.ABAPObject) {
167
+ val = "OpenABAPInternalObjectId=" + val.get().INTERNAL_ID;
168
+ }
158
169
  else if (val instanceof structure_1.Structure) {
159
170
  val = val.getCharacter();
160
171
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.10.23",
3
+ "version": "2.10.25",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -32,9 +32,9 @@
32
32
  "@types/chai": "^4.3.20",
33
33
  "@types/mocha": "^10.0.10",
34
34
  "chai": "^4.5.0",
35
- "mocha": "^11.0.1",
35
+ "mocha": "^11.1.0",
36
36
  "source-map-support": "^0.5.21",
37
- "typescript": "^5.7.2"
37
+ "typescript": "^5.7.3"
38
38
  },
39
39
  "dependencies": {
40
40
  "temporal-polyfill": "^0.2.5"