node-rdf icon indicating copy to clipboard operation
node-rdf copied to clipboard

refactor: use a stack instead of recursion in Graph.toArray

Open Reddine opened this issue 4 months ago • 0 comments

I encountered an InternalError: too much recursion when using TurboPack as a bundler

A stack is now used to avoid recursion, and the result is reversed to maintain the correct order (in assertions).

Reddine avatar Oct 18 '24 11:10 Reddine