I think I'm having heap issues



  • So I'm calling a method recursively. I do it 6 times

    Inside the method, I do a console.log of the object I'm passing back to main. It comes out fine. The next line after calling the method in main, it comes out as undefined.

    The first 5 times I do this, it works perfectly. The 6th time, it comes back undefined.

    So I change the loop...I do 5 times on one tick, and once on the next tick...works perfectly.

    Can this be a heap issue?