@abaplint/transpiler 2.7.55 → 2.7.56

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.
@@ -38,7 +38,11 @@ class CallFunctionTranspiler {
38
38
  ret.appendString(`await abap.statements.callFunction({name:${fmname},destination:${s.getCode()}${param}});`);
39
39
  }
40
40
  else {
41
- ret.appendString(`await abap.FunctionModules[${fmname}](${param});`);
41
+ const illegalFunc = traversal.lookupClassOrInterface("'CX_SY_DYN_CALL_ILLEGAL_FUNC'", node.getFirstToken(), true);
42
+ const call = `abap.FunctionModules[${fmname}]`;
43
+ ret.appendString(`if (${call} === undefined && ${illegalFunc} === undefined) { throw "CX_SY_DYN_CALL_ILLEGAL_FUNC not found"; }\n`);
44
+ ret.appendString(`if (${call} === undefined) { throw new ${illegalFunc}(); }\n`);
45
+ ret.appendString(`await ${call}(${param});`);
42
46
  }
43
47
  if (exceptions) {
44
48
  const build = call_1.CallTranspiler.buildExceptions(exceptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.7.55",
3
+ "version": "2.7.56",
4
4
  "description": "Transpiler",
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
  "dependencies": {
32
- "@abaplint/core": "^2.102.8",
32
+ "@abaplint/core": "^2.102.14",
33
33
  "source-map": "^0.7.4"
34
34
  },
35
35
  "devDependencies": {