-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
TypeError: clazz is not a constructor on ≥ v11.6.0 #25451
Comments
There probably is a bug here with |
You can fix the prototype issue by changing |
this happens with the indexed/keyed collections when they have the right internal slots but the wrong prototype (prototype constructor is missing, from |
Yes, there's a check missing if the prototype is null or not. If it is not null, we should keep the prototype and fall back to the regular object inspection. |
The fallback should only be taken for a null prototype. If an iterable data type (e.g., Array) has a prototype without `Symbol.iterator`, just try the best to visualize it as object. Fixes: nodejs#25451
The fallback should only be taken for a null prototype. If an iterable data type (e.g., Array) has a prototype without `Symbol.iterator`, just try the best to visualize it as object. PR-URL: #25457 Fixes: #25451 Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
I'm experiencing an issue with a following piece of code
You can see a more detailed information about the stacktrace right below
The text was updated successfully, but these errors were encountered: