@abaplint/transpiler 2.11.72 → 2.11.74

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.
@@ -115,10 +115,14 @@ if (e.classic) {
115
115
  for (const e of node.findAllExpressions(abaplint.Expressions.ParameterException)) {
116
116
  const name = e.getFirstToken().getStr().toUpperCase();
117
117
  // todo, also handle SimpleChain,
118
- const value = e.findFirstExpression(abaplint.Expressions.Integer)?.getFirstToken().getStr().toUpperCase();
118
+ let value = e.findFirstExpression(abaplint.Expressions.Integer)?.getFirstToken().getStr().toUpperCase();
119
119
  if (value === undefined) {
120
120
  continue;
121
121
  }
122
+ while (value.substring(0, 1) === "0" && value.length > 1) {
123
+ // remove leading zeros
124
+ value = value.substring(1);
125
+ }
122
126
  if (name === "OTHERS") {
123
127
  post += `default: abap.builtin.sy.get().subrc.set(${value}); break;\n`;
124
128
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.11.72",
3
+ "version": "2.11.74",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",