| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 582f1f0 commit 9bf2da3
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | - require('../common'); | ||
| 23 | + const common = require('../common'); | ||
| 24 | 24 | const assert = require('assert'); | |
| 25 | 25 | ||
| 26 | 26 | // Requiring the domain module here changes the function that is used by node to | |
@@ -30,6 +30,8 @@ const assert = require('assert'); | |||
| 30 | 30 | // removed. | |
| 31 | 31 | require('domain'); | |
| 32 | 32 | ||
| 33 | + common.crashOnUnhandledRejection(); | ||
| 34 | + | ||
| 33 | 35 | function enqueueMicrotask(fn) { | |
| 34 | 36 | Promise.resolve().then(fn); | |
| 35 | 37 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments