Clarify argument to spyOnGlobalErrorsAsync's spy

This commit is contained in:
Steve Gravrock
2024-03-22 08:53:19 -07:00
parent 6941bde7e2
commit 4984548cab
3 changed files with 16 additions and 0 deletions

View File

@@ -12,6 +12,7 @@ getJasmineRequireObj().GlobalErrors = function(j$) {
function dispatchBrowserError(error, event) {
if (overrideHandler) {
// See discussion of spyOnGlobalErrorsAsync in base.js
overrideHandler(error);
return;
}
@@ -55,6 +56,7 @@ getJasmineRequireObj().GlobalErrors = function(j$) {
const handler = handlers[handlers.length - 1];
if (overrideHandler) {
// See discussion of spyOnGlobalErrorsAsync in base.js
overrideHandler(error);
return;
}