@abaplint/runtime 2.4.1 → 2.4.3

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.
@@ -19,13 +19,12 @@ async function cast(target, source) {
19
19
  if (target instanceof types_1.FieldSymbol && target.getPointer() === undefined) {
20
20
  throw "GETWA_NOT_ASSIGNED";
21
21
  }
22
- const targetName = (_a = target.getQualifiedName()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
22
+ let targetName = undefined;
23
+ if (target.getQualifiedName) {
24
+ targetName = (_a = target.getQualifiedName()) === null || _a === void 0 ? void 0 : _a.toUpperCase();
25
+ }
23
26
  // @ts-ignore
24
27
  const targetClass = abap.Classes[targetName];
25
- /*
26
- if (targetName?.startsWith("IF_") === false
27
- && targetName?.startsWith("ZIF_") === false) { // todo, interfaces are also classes but not inherited
28
- */
29
28
  if ((targetClass === null || targetClass === void 0 ? void 0 : targetClass.INTERNAL_TYPE) === "CLAS") {
30
29
  // using "instanceof" is probably wrong in some cases,
31
30
  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/instanceof
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/runtime",
3
- "version": "2.4.1",
3
+ "version": "2.4.3",
4
4
  "description": "Transpiler - Runtime",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",