@@ -253,10 +253,10 @@ let warnedVerifyHostnameIdentity = false;
253
253
254
254
let DOMException ;
255
255
256
- const lazyDOMException = hideStackFrames ( ( message ) => {
256
+ const lazyDOMException = hideStackFrames ( ( message , name ) => {
257
257
if ( DOMException === undefined )
258
258
DOMException = internalBinding ( 'messaging' ) . DOMException ;
259
- return new DOMException ( message ) ;
259
+ return new DOMException ( message , name ) ;
260
260
} ) ;
261
261
262
262
assert ( process . versions . ngtcp2 !== undefined ) ;
@@ -664,10 +664,10 @@ class QuicEndpoint {
664
664
if ( signal != null && ! ( 'aborted' in signal ) )
665
665
throw new ERR_INVALID_ARG_TYPE ( 'options.signal' , 'AbortSignal' , signal ) ;
666
666
667
- // If an AbotSignal was passed in, check to make sure it is not already
667
+ // If an AbortSignal was passed in, check to make sure it is not already
668
668
// aborted before we continue on to do any work.
669
669
if ( signal && signal . aborted )
670
- throw new lazyDOMException ( 'AbortError' ) ;
670
+ throw new lazyDOMException ( 'The operation was aborted' , ' AbortError') ;
671
671
672
672
state . state = kSocketPending ;
673
673
@@ -685,7 +685,7 @@ class QuicEndpoint {
685
685
// while we were waiting.
686
686
if ( signal && signal . aborted ) {
687
687
state . state = kSocketUnbound ;
688
- throw new lazyDOMException ( 'AbortError' ) ;
688
+ throw new lazyDOMException ( 'The operation was aborted' , ' AbortError') ;
689
689
}
690
690
691
691
// From here on, any errors are fatal for the QuicEndpoint. Keep in
@@ -1064,7 +1064,7 @@ class QuicSocket extends EventEmitter {
1064
1064
// If an AbotSignal was passed in, check to make sure it is not already
1065
1065
// aborted before we continue on to do any work.
1066
1066
if ( signal && signal . aborted )
1067
- throw new lazyDOMException ( 'AbortError' ) ;
1067
+ throw new lazyDOMException ( 'The operation was aborted' , ' AbortError') ;
1068
1068
1069
1069
state . state = kSocketPending ;
1070
1070
@@ -1086,7 +1086,7 @@ class QuicSocket extends EventEmitter {
1086
1086
// Some number of endpoints may have successfully bound, while
1087
1087
// others have not
1088
1088
if ( signal && signal . aborted )
1089
- throw lazyDOMException ( 'AbortError' ) ;
1089
+ throw lazyDOMException ( 'The operation was aborted' , ' AbortError') ;
1090
1090
1091
1091
state . state = kSocketBound ;
1092
1092
0 commit comments