-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle circular references better #75
Comments
Oh wow, let me take a look at this. Ping me if I forget. I can at least reproduce it so that's something:
|
When generating the preview, would it make sense to automatically limit the size? For example it's useful to see the message An example limit for this specific case could look like I know that Node's inspect won't try to go too deep into objects, so such a limit alone should solve circular references permanently. |
It looks like #44 isn't fully fixed.
It's hard to make a repro because I'm using
loupe
via Vitest, but it seems to be a problem with https://github.com/WebReflection/linkedom and some documents:The repro should look something like:
The assertion probably gets caught up trying to preview the DOM objects, which has plenty of circular references. I'm not sure what's wrong with the DOM generated by that particular page, but it fails there and not on other similar pages.
The text was updated successfully, but these errors were encountered: