-
-
Notifications
You must be signed in to change notification settings - Fork 32k
errors: make sure all Node.js errors show their properties #29677
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -161,8 +161,10 @@ async function ctrlCTest() { | |
]), [ | ||
'await timeout(100000)\r', | ||
'Thrown:', | ||
'Error [ERR_SCRIPT_EXECUTION_INTERRUPTED]: ' + | ||
'Script execution was interrupted by `SIGINT`', | ||
'[Error [ERR_SCRIPT_EXECUTION_INTERRUPTED]: ' + | ||
'Script execution was interrupted by `SIGINT`] {', | ||
" code: 'ERR_SCRIPT_EXECUTION_INTERRUPTED'", | ||
'}', | ||
Comment on lines
+164
to
+167
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why did this test in particular need to change? is there something unusual about how this test works? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The difference is that the Mostly we just do not check what properties exist but only verify that specific properties contain specific values. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In other words, because no other tests inspect There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not the stack that is changed here. It's the output when inspecting the error (e.g., using We rarely inspect errors in tests. Mostly we just check for the properties existence and their values. That also works with non-enumerable properties. |
||
PROMPT | ||
]); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.