@abaplint/cli 2.108.9 → 2.108.10

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/cli.js +19 -5
  2. package/package.json +2 -2
package/build/cli.js CHANGED
@@ -17959,7 +17959,7 @@ class Sequence {
17959
17959
  }
17960
17960
  run(statements, parent) {
17961
17961
  let inn = statements;
17962
- const out = [];
17962
+ let out = [];
17963
17963
  for (const i of this.list) {
17964
17964
  const match = i.run(inn, parent);
17965
17965
  if (match.error) {
@@ -17971,7 +17971,14 @@ class Sequence {
17971
17971
  errorMatched: out.length,
17972
17972
  };
17973
17973
  }
17974
- out.push(...match.matched);
17974
+ if (match.matched.length < 100) {
17975
+ out.push(...match.matched);
17976
+ }
17977
+ else {
17978
+ // avoid using the spread operator, it might trigger "Maximum call stack size exceeded"
17979
+ // when the number of matched elements is very large
17980
+ out = out.concat(match.matched);
17981
+ }
17975
17982
  inn = match.unmatched;
17976
17983
  }
17977
17984
  return {
@@ -18103,7 +18110,7 @@ class Star {
18103
18110
  }
18104
18111
  run(statements, parent) {
18105
18112
  let inn = statements;
18106
- const out = [];
18113
+ let out = [];
18107
18114
  while (true) {
18108
18115
  if (inn.length === 0) {
18109
18116
  return {
@@ -18135,7 +18142,14 @@ class Star {
18135
18142
  };
18136
18143
  }
18137
18144
  }
18138
- out.push(...match.matched);
18145
+ if (match.matched.length < 100) {
18146
+ out.push(...match.matched);
18147
+ }
18148
+ else {
18149
+ // avoid using the spread operator, it might trigger "Maximum call stack size exceeded"
18150
+ // when the number of matched elements is very large
18151
+ out = out.concat(match.matched);
18152
+ }
18139
18153
  inn = match.unmatched;
18140
18154
  }
18141
18155
  }
@@ -51592,7 +51606,7 @@ class Registry {
51592
51606
  }
51593
51607
  static abaplintVersion() {
51594
51608
  // magic, see build script "version.sh"
51595
- return "2.108.9";
51609
+ return "2.108.10";
51596
51610
  }
51597
51611
  getDDICReferences() {
51598
51612
  return this.ddicReferences;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.108.9",
3
+ "version": "2.108.10",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.108.9",
41
+ "@abaplint/core": "^2.108.10",
42
42
  "@types/chai": "^4.3.16",
43
43
  "@types/glob": "^8.1.0",
44
44
  "@types/minimist": "^1.2.5",