@abaplint/transpiler-cli 2.11.88 → 2.11.89

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.
Files changed (2) hide show
  1. package/build/bundle.js +6 -5
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -84192,7 +84192,7 @@ class CallTranspiler {
84192
84192
  const methodCallBody = node.findDirectExpression(abaplint.Expressions.MethodCallBody);
84193
84193
  if (methodCallBody) {
84194
84194
  if (methodCallBody.findDirectTokenByText("EXCEPTION")) {
84195
- throw new Error("EXCEPTION-TABLE not supported, todo");
84195
+ return new chunk_1.Chunk(`throw new Error("EXCEPTION-TABLE not supported, todo");`);
84196
84196
  }
84197
84197
  if (methodCallBody.findDirectTokenByText("PARAMETER")) {
84198
84198
  const source = traversal.traverse(methodCallBody.findDirectExpression(abaplint.Expressions.Source)).getCode();
@@ -87989,9 +87989,6 @@ class RaiseTranspiler {
87989
87989
  if (node.findDirectTokenByText("RESUMABLE")) {
87990
87990
  throw new Error("RaiseTranspiler, RESUMABLE not implemented");
87991
87991
  }
87992
- else if (node.findDirectTokenByText("SHORTDUMP")) {
87993
- throw new Error("RaiseTranspiler, SHORTDUMP not implemented");
87994
- }
87995
87992
  const classNameToken = node.findFirstExpression(abaplint.Expressions.ClassName)?.getFirstToken();
87996
87993
  const className = classNameToken?.getStr();
87997
87994
  if (className === undefined) {
@@ -88067,9 +88064,13 @@ ${textid}.get().attr4.set('IF_T100_DYN_MSG~MSGV4');
88067
88064
  count++;
88068
88065
  }
88069
88066
  }
88067
+ let throwError = `throw ${id};`;
88068
+ if (node.findDirectTokenByText("SHORTDUMP")) {
88069
+ throwError = `throw new Error("short dump");`;
88070
+ }
88070
88071
  return new chunk_1.Chunk().append(pre + `const ${id} = await (new ${lookup}()).constructor_(${p});
88071
88072
  ${id}.EXTRA_CX = ${extra};${post}
88072
- throw ${id};`, node, traversal);
88073
+ ${throwError}`, node, traversal);
88073
88074
  }
88074
88075
  }
88075
88076
  exports.RaiseTranspiler = RaiseTranspiler;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.88",
3
+ "version": "2.11.89",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.200",
31
- "@abaplint/transpiler": "^2.11.88",
31
+ "@abaplint/transpiler": "^2.11.89",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.3.1",
34
34
  "@types/progress": "^2.0.7",