File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var SETTLED = 'settled';
55var FULFILLED = 'fulfilled' ;
66var REJECTED = 'rejected' ;
77var NOOP = function ( ) { } ;
8- var isNode = typeof process !== 'undefined' && typeof process . emit === 'function' ;
8+ var isNode = global . process !== 'undefined' && typeof global . process . emit === 'function' ;
99
1010var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate ;
1111var asyncQueue = [ ] ;
@@ -156,12 +156,12 @@ function publishRejection(promise) {
156156 promise . _state = REJECTED ;
157157 publish ( promise ) ;
158158 if ( ! promise . _handled && isNode ) {
159- process . emit ( 'unhandledRejection' , promise . _data , promise ) ;
159+ global . process . emit ( 'unhandledRejection' , promise . _data , promise ) ;
160160 }
161161}
162162
163163function notifyRejectionHandled ( promise ) {
164- process . emit ( 'rejectionHandled' , promise ) ;
164+ global . process . emit ( 'rejectionHandled' , promise ) ;
165165}
166166
167167/**
You can’t perform that action at this time.
0 commit comments