-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
v12: hangs on calling console.log with large object #29646
Labels
util
Issues and PRs related to the built-in util module.
Comments
/cc @BridgeAR |
I am looking into it. Inspection of some options is not working as intended. Seems like the prototype inspection is missing a recursion end condition. These seem problematic: VueComponent.$root.$options.components
VueComponent.$root.$options.directives
VueComponent.$root.$options.filters |
4 tasks
BridgeAR
added a commit
that referenced
this issue
Sep 24, 2019
This makes sure prototypes won't be inspected infinitely for some obscure object creations. The depth is now taken into account and the recursion ends when the depth limit is reached. PR-URL: #29647 Fixes: #29646 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
BridgeAR
added a commit
that referenced
this issue
Sep 25, 2019
This makes sure prototypes won't be inspected infinitely for some obscure object creations. The depth is now taken into account and the recursion ends when the depth limit is reached. PR-URL: #29647 Fixes: #29646 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately I was unable to reproduce this with a small circular object, I think at least it has something to do with circularity, no idea what else could cause this.
Reproduction is here, this tries to log a full VueComponent: https://github.com/pimlie/node-v12-util-inspect-issue
Steps:
node --inspect ./node_modules/.bin/nuxt
Tested
v10.16.3
andv8.16.1
which both work fine. Possibly related to #29592?The text was updated successfully, but these errors were encountered: