@abaplint/runtime 2.7.125 → 2.7.126

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.
@@ -199,23 +199,27 @@ function readTable(table, options) {
199
199
  abap.builtin.sy.get().subrc.set(subrc);
200
200
  // @ts-ignore
201
201
  abap.builtin.sy.get().tabix.set(foundIndex);
202
- if (options.into && found) {
203
- if (options.into instanceof types_1.DataReference && found instanceof types_1.DataReference) {
204
- options.into.assign(found.getPointer());
202
+ if (found) {
203
+ if (options.into) {
204
+ if (options.into instanceof types_1.DataReference) {
205
+ if (found instanceof types_1.DataReference) {
206
+ options.into.assign(found.getPointer());
207
+ }
208
+ else {
209
+ options.into.assign(found);
210
+ }
211
+ }
212
+ else {
213
+ options.into.set(found);
214
+ }
205
215
  }
206
- else if (options.into instanceof types_1.DataReference) {
207
- options.into.assign(found);
216
+ else if (options.referenceInto) {
217
+ options.referenceInto.assign(found);
208
218
  }
209
- else {
210
- options.into.set(found);
219
+ else if (options.assigning) {
220
+ options.assigning.assign(found);
211
221
  }
212
222
  }
213
- else if (options.referenceInto && found) {
214
- options.referenceInto.assign(found);
215
- }
216
- else if (options.assigning && found) {
217
- options.assigning.assign(found);
218
- }
219
223
  return { subrc, foundIndex };
220
224
  }
221
225
  exports.readTable = readTable;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.7.125",
3
+ "version": "2.7.126",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",