diff --git a/api/extension/QUnit.onUncaughtException/index.html b/api/extension/QUnit.onUncaughtException/index.html index 291f03c73..09665cec6 100644 --- a/api/extension/QUnit.onUncaughtException/index.html +++ b/api/extension/QUnit.onUncaughtException/index.html @@ -6,7 +6,7 @@
QUnit.onUncaughtException( error )
Handle a global error that should result in a failed test run.
+Report a global error that should result in a failed test run.
This method can be safely called at any time, including between or outside tests. It is designed for use by plugins and integration layers.
+ +In general, you should not use this method and instead throw an error. QUnit automatically finds and reports uncaught errors. The following are handled by default and should not be connected to QUnit.onUncaughtException()
a second time:
window.onerror
window.addEventListener('unhandledrejection', …)
process.on('unhandledRejection', …)
process.on('uncaughtException', …)
const error = new Error('Failed to reverse the polarity of the neutron flow');
QUnit.onUncaughtException(error);
process.on('uncaughtException', QUnit.onUncaughtException);
+process.on('unhandledExample', QUnit.onUncaughtException);
-window.addEventListener('unhandledrejection', function (event) {
+window.addEventListener('unhandledexample', function (event) {
QUnit.onUncaughtException(event.reason);
});
diff --git a/api/extension/index.html b/api/extension/index.html
index c9970684b..55f91f8c1 100644
--- a/api/extension/index.html
+++ b/api/extension/index.html
@@ -102,7 +102,7 @@ QUnit.hooks
Add global callbacks to run before or after each test.
QUnit.onUncaughtException()
-Handle a global error.
+Report a global error.
QUnit.stack()
Return a single line string representing the stacktrace.
diff --git a/feed.xml b/feed.xml
index e760da1f5..f6ae132e3 100644
--- a/feed.xml
+++ b/feed.xml
@@ -1 +1 @@
-Jekyll 2024-05-31T18:39:58+00:00 https://qunitjs.com/feed.xml QUnit The powerful, easy-to-use JavaScript testing framework.
\ No newline at end of file
+Jekyll 2024-06-01T00:34:30+00:00 https://qunitjs.com/feed.xml QUnit The powerful, easy-to-use JavaScript testing framework.
\ No newline at end of file