File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,8 @@ export interface IterateOptions {
408
408
409
409
/** An error that wraps exceptions that thrown during IndexedDB execution. */
410
410
export class SimpleDbTransactionError extends FirestoreError {
411
+ name = 'SimpleDbTransactionError' ;
412
+
411
413
constructor ( cause : Error ) {
412
414
super (
413
415
Code . UNKNOWN ,
Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ export class AsyncQueue {
339
339
deferred . resolve ( ) ;
340
340
this . backoff . reset ( ) ;
341
341
} catch ( e ) {
342
- if ( e instanceof SimpleDbTransactionError ) {
342
+ if ( e . name === ' SimpleDbTransactionError' ) {
343
343
logDebug ( LOG_TAG , 'Operation failed with retryable error: ' + e ) ;
344
344
this . backoff . backoffAndRun ( retryingOp ) ;
345
345
} else {
You can’t perform that action at this time.
0 commit comments