| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e4854fc commit ac1b81a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -14,6 +14,8 @@ function getAsynchronousRejectionWarningObject(uid) { | |||
| 14 | 14 | } | |
| 15 | 15 | ||
| 16 | 16 | function setupPromises(scheduleMicrotasks) { | |
| 17 | + let deprecationWarned = false; | ||
| 18 | + | ||
| 17 | 19 | process._setupPromises(function(event, promise, reason) { | |
| 18 | 20 | if (event === promiseRejectEvent.unhandled) | |
| 19 | 21 | unhandledRejection(promise, reason); | |
@@ -73,7 +75,7 @@ function setupPromises(scheduleMicrotasks) { | |||
| 73 | 75 | 'DeprecationWarning', 'DEP0018'); | |
| 74 | 76 | } | |
| 75 | 77 | } | |
| 76 | - var deprecationWarned = false; | ||
| 78 | + | ||
| 77 | 79 | function emitPendingUnhandledRejections() { | |
| 78 | 80 | let hadListeners = false; | |
| 79 | 81 | while (pendingUnhandledRejections.length > 0) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments