Skip to content

Commit bd599f4

Browse files
committed
Capture NS_ERROR_FAILURE errors from Firefox
1 parent 830eb04 commit bd599f4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils.js

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function isEmptyObject(what) {
2828
function isError(what) {
2929
return isObject(what) &&
3030
objectPrototype.toString.call(what) === '[object Error]' ||
31+
objectPrototype.toString.call(what) === '[object Exception]' || // Firefox NS_ERROR_FAILURE Exceptions
3132
what instanceof Error;
3233
}
3334

0 commit comments

Comments
 (0)