⚠ Add warning in code comment

This commit is contained in:
C-3PO 2018-06-22 18:25:31 +02:00
parent 22dfac4828
commit fc88c410a1
Signed by: c3po
GPG key ID: 62993C4BB4D86F24

View file

@ -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]];