⚠ Add warning in code comment
This commit is contained in:
parent
22dfac4828
commit
fc88c410a1
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@ export default function findReleasePath({ product, from, to}: {product: Product,
|
||||||
|
|
||||||
for (let i = 0, il = smallerFroms.length; i < il; i += 1) {
|
for (let i = 0, il = smallerFroms.length; i < il; i += 1) {
|
||||||
const interim = smallerFroms[i];
|
const interim = smallerFroms[i];
|
||||||
|
//TODO: This sometimes causes a "Maximum call stack size exceeded" error, e.g. for `{ product: '*', from: 1, to: 11 }`
|
||||||
const releasePath = findReleasePath({ product, from, to: interim} );
|
const releasePath = findReleasePath({ product, from, to: interim} );
|
||||||
if (releasePath.length > 0) {
|
if (releasePath.length > 0) {
|
||||||
return [...releasePath, [interim, to]];
|
return [...releasePath, [interim, to]];
|
||||||
|
|
Loading…
Reference in a new issue