-
Notifications
You must be signed in to change notification settings - Fork 31.1k
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 produces NodeError with "Please open an issue with this stack trace" #41244
Comments
A minimal reproducible example: const a = {
b: {
get [Symbol.iterator]() {
throw Error();
}
}
};
console.log(a); This happens because the userland Error is caught by the internal module: node/lib/internal/util/inspect.js Lines 1026 to 1038 in 4cb2a47
Maybe we can improve this by filtering the userland error? |
From my reading @meixg's above minimal example causes an error because of the dynamic node/lib/internal/util/inspect.js Line 862 in a81b4eb
I'm still not sure if @fabiancook's error is happening for the same reason but I'll try to fix it by removing access to |
@meixg it is actually a separate issue that you highlight. I have a local fix for this issue as well. |
This is no longer reproducible AFAICT. |
Version
v17.2.0
Platform
Darwin Fabians-Mac-mini.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64
Subsystem
No response
What steps will reproduce the bug?
By replacing the line here:
https://github.com/virtualstate/x/blob/5e1a4af59fd61b436f02570b1f64ff5a0b90cb79/packages/fringe/src/token.ts#L209
With
And running:
Produces the error.
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
The error log:
What do you see instead?
The error log:
Additional information
I don't actually believe this is a valid bug, but the internal bug asked for me to raise, so I have raised.
The text was updated successfully, but these errors were encountered: